Skip to content

Commit

Permalink
Upgrade test
Browse files Browse the repository at this point in the history
  • Loading branch information
tschneider-aneo committed Nov 14, 2024
1 parent 604cd16 commit 173db7d
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/bench-aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,18 @@ jobs:
run: |
set -ex
if [ "$TRIGGER" = 'push' ]; then
echo 'type=["localhost"]' >> "$GITHUB_OUTPUT"
echo 'include=[{"type": "localhost", "ntasks":100, "polling-limit": 300}]' >> "$GITHUB_OUTPUT"
echo '{"include":[{"type": "localhost", "ntasks":100, "polling-limit": 300}]}' > matrix.json
elif [ "$TRIGGER" = 'release' ]; then
echo 'type=["localhost", "aws"]' >> "$GITHUB_OUTPUT"
echo 'include=[{"type": "localhost", "ntasks":100, "polling-limit": 300}, {"type": "aws", "ntasks":1000, "polling-limit": 600}]' >> "$GITHUB_OUTPUT"
echo '{"include":[{"type": "localhost", "ntasks":100, "polling-limit": 300}, {"type": "aws", "ntasks":1000, "polling-limit": 600}]}' > matrix.json
fi
echo "::set-output name=matrix::$(cat matrix.json)"
test-matrix:
name: Test matrix
runs-on: ubuntu-latest
needs: define-matrix
strategy:
fail-fast: false
matrix:
type: ${{ fromJSON(needs.define-matrix.outputs.type) }}
include: ${{ fromJSON(needs.define-matrix.outputs.include) }}
matrix: ${{ fromJSON(needs.define-matrix.outputs.matrix) }}
steps:
- id: test
name: Test matrix
Expand Down

0 comments on commit 173db7d

Please sign in to comment.