diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 25d3996..bea2050 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,4 @@ -# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node -# For more information see: https://github.com/marketplace/actions/setup-node-js-environment +# @see: https://github.com/marketplace/actions/setup-node-js-environment name: CI @@ -17,14 +16,13 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [18.x, 20.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + node: [ 20, 22 ] + name: Node ${{ matrix.node }} sample steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - # cache: 'npm' - - run: npm install --ignore-scripts - - run: npm run all + - uses: actions/checkout@v4 + - name: Setup node + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + - run: npm install --ignore-scripts + - run: npm run all