Skip to content

Commit 1484aed

Browse files
authored
chore: matrix daily workflow runs (#73)
Use @pkgjs/nv to determine which release lines are in support and matrix those versions together with `main`.
1 parent ff9de46 commit 1484aed

File tree

6 files changed

+32
-85
lines changed

6 files changed

+32
-85
lines changed

.github/workflows/14x-main.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/16x-main.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/18x-main.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/19x-main.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/daily-main.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/daily.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Check for vulnerabilities daily
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: 0 0 * * *
7+
8+
permissions:
9+
contents: read
10+
issues: write
11+
12+
jobs:
13+
get-supported-versions:
14+
runs-on: ubuntu-latest
15+
outputs:
16+
# JSON array of versions to check, e.g. '["v14","v16","v18","v19","main"]'
17+
matrix: ${{ steps.fetch-versions.outputs.matrix }}
18+
steps:
19+
- id: fetch-versions
20+
run: echo "matrix=$(npx -p @pkgjs/nv nv ls supported | jq -c -n '[inputs.versionName] | . += ["main"]')" >> $GITHUB_OUTPUT
21+
check-vulns:
22+
name: Check vulnerabilities on ${{ matrix.nodejsStream }}
23+
needs: get-supported-versions
24+
secrets: inherit
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
nodejsStream: ${{ fromJSON(needs.get-supported-versions.outputs.matrix) }}
29+
uses: ./.github/workflows/check-vulns.yml
30+
with:
31+
nodejsStream: ${{ matrix.nodejsStream }}
32+

0 commit comments

Comments
 (0)