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 43f0976 commit 4ce4fd6
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 @@ -15,14 +15,9 @@ jobs:
uses: panva/.github/.github/workflows/npm-audit.yml@main

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 >= 18) | .lts | ascii_downcase | "lts/\(.)"] + ["current"] | unique')" >> "$GITHUB_OUTPUT"
uses: panva/.github/.github/workflows/node-versions.yml@main
with:
min: 18

test:
if: ${{ github.repository == 'panva/node-oidc-provider' || github.event_name == 'workflow_dispatch' }}
Expand Down

0 comments on commit 4ce4fd6

Please sign in to comment.