Skip to content

Commit

Permalink
also parallelize in appsec, and use OLDEST_NODE env var
Browse files Browse the repository at this point in the history
  • Loading branch information
bengl committed May 30, 2024
1 parent f4652d2 commit 1140b4e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/appsec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
schedule:
- cron: '0 4 * * *'

env:
OLDEST_NODE: 18

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true
Expand Down Expand Up @@ -202,17 +205,22 @@ jobs:
- uses: codecov/codecov-action@v3

next:
strategy:
matrix:
version:
- ${{ env.OLDEST_NODE }}
- latest
runs-on: ubuntu-latest
env:
PLUGINS: next
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/testagent/start
- uses: ./.github/actions/node/setup
- uses: actions/setup-node@v3
with:
cache: yarn
node-version: ${{ matrix.version }}
- run: yarn install
- uses: ./.github/actions/node/oldest
- run: yarn test:appsec:plugins:ci
- uses: ./.github/actions/node/latest
- run: yarn test:appsec:plugins:ci
- if: always()
uses: ./.github/actions/testagent/logs
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
schedule:
- cron: '0 4 * * *'

env:
OLDEST_NODE: 18

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true
Expand Down Expand Up @@ -937,7 +940,9 @@ jobs:
next:
strategy:
matrix:
version: [18, latest] # note that 18 is currently "oldest". change when necessary.
version:
- ${{ env.OLDEST_NODE }}
- latest
runs-on: ubuntu-latest
env:
PLUGINS: next
Expand Down

0 comments on commit 1140b4e

Please sign in to comment.