-
-
Notifications
You must be signed in to change notification settings - Fork 263
40 lines (32 loc) · 1.02 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
# Temperory pinned to ubuntu-22.04 instead of ubuntu-latest due to Github action issues in ubuntu-24.04
runs-on: ubuntu-22.04
strategy:
matrix:
# To be updated with the supported Node.js LTS release.
# Check https://nodejs.org/en/about/releases for the current versions to update the following:
node-version: [18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v4
- name: setup-docker
uses: docker-practice/actions-setup-docker@master
with:
docker_channel: stable
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
cache-dependency-path: package-lock.json
- name: Install
run: npm ci