Skip to content

Commit

Permalink
parallelize next plugin test (#4343)
Browse files Browse the repository at this point in the history
* parallelize next plugin test

* also parallelize in appsec, and use OLDEST_NODE env var
  • Loading branch information
bengl authored and juan-fernandez committed Jun 4, 2024
1 parent b5f91fb commit be21212
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/appsec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,17 +202,22 @@ jobs:
- uses: codecov/codecov-action@v3

next:
strategy:
matrix:
version:
- 18
- 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
13 changes: 9 additions & 4 deletions .github/workflows/plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -935,17 +935,22 @@ jobs:

# TODO: fix performance issues and test more Node versions
next:
strategy:
matrix:
version:
- 18
- 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:plugins:ci
- uses: ./.github/actions/node/latest
- run: yarn test:plugins:ci
- if: always()
uses: ./.github/actions/testagent/logs
Expand Down

0 comments on commit be21212

Please sign in to comment.