Skip to content

Commit

Permalink
ci: use GH Action for detecting LTS Node (#771)
Browse files Browse the repository at this point in the history
* ci: use GH Action for detecting LTS Node

* ci: bump Java to 17

* chore: revert functional CI changes
  • Loading branch information
eglitise authored May 2, 2024
1 parent ccc7d54 commit e39a4cf
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e39a4cf

Please sign in to comment.