Update GitHub workflow to fix the broken build #516
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |