diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 7691a3cb9..6dde6288f 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -2,18 +2,24 @@ name: Unit Tests on: pull_request: branches: [ master ] + paths-ignore: + - 'docs/**' + - '*.md' push: branches: [ master ] + paths-ignore: + - 'docs/**' + - '*.md' jobs: prepare_matrix: runs-on: ubuntu-latest outputs: - versions: ${{ steps.generate-matrix.outputs.versions }} + versions: ${{ steps.generate-matrix.outputs.active }} steps: - - name: Select 3 most recent LTS versions of Node.js + - name: Select all active LTS versions of Node.js id: generate-matrix - run: echo "versions=$(curl -s https://endoflife.date/api/nodejs.json | jq -c '[[.[] | select(.lts != false)][:3] | .[].cycle | tonumber]')" >> "$GITHUB_OUTPUT" + uses: msimerson/node-lts-versions@v1 unit-test: needs: