Skip to content
This repository was archived by the owner on Mar 29, 2025. It is now read-only.

Commit 27437dc

Browse files
committed
ci: use reusable worflow for node-versions
1 parent 3225c99 commit 27437dc

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,9 @@ jobs:
3737
- run: npm run test-types
3838

3939
node-versions:
40-
name: Get Node.js Versions
41-
runs-on: ubuntu-latest
42-
outputs:
43-
matrix: ${{ steps.query.outputs.matrix }}
44-
steps:
45-
- id: query
46-
run: |
47-
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"
40+
uses: panva/.github/.github/workflows/node-versions.yml@main
41+
with:
42+
min: 16
4843

4944
test:
5045
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)