Skip to content

Commit

Permalink
ci: Update Node LTS matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach authored May 16, 2024
1 parent 681feb3 commit 1a0c002
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ 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
test:
needs:
- prepare_matrix
Expand Down

0 comments on commit 1a0c002

Please sign in to comment.