Skip to content

Commit

Permalink
ci: use reusable worflow for node-versions
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Oct 18, 2024
1 parent 3225c99 commit 27437dc
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,9 @@ jobs:
- run: npm run test-types

node-versions:
name: Get Node.js Versions
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.query.outputs.matrix }}
steps:
- id: query
run: |
echo "matrix=$(curl -s https://raw.githubusercontent.com/actions/node-versions/refs/heads/main/versions-manifest.json | jq -c '[.[] | select(.lts) | select(.version | split(".")[0] | tonumber >= 16) | .lts | ascii_downcase | "lts/\(.)"] + ["current"] | unique')" >> "$GITHUB_OUTPUT"
uses: panva/.github/.github/workflows/node-versions.yml@main
with:
min: 16

test:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 27437dc

Please sign in to comment.