Skip to content

Commit 173dda1

Browse files
committed
run both tests in CI
1 parent 4f1c7e1 commit 173dda1

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/framework-golden-tests.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,23 @@ on:
44
concurrency:
55
group: ${{ github.workflow }}-${{ github.ref }}-framework-golden-examples
66
cancel-in-progress: true
7+
78
jobs:
89
test:
910
defaults:
1011
run:
1112
working-directory: framework/examples/myproject
1213
env:
13-
CTF_CONFIGS: load.toml
1414
LOKI_TENANT_ID: promtail
1515
LOKI_URL: http://localhost:3030/loki/api/v1/push
1616
runs-on: ubuntu-latest
1717
permissions:
1818
id-token: write
1919
contents: read
20+
strategy:
21+
matrix:
22+
config-file: [load.toml, chaos.toml] # Configuration files
23+
test-name: [TestLoad, TestChaos] # Corresponding test names
2024
steps:
2125
- name: Checkout repo
2226
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
@@ -54,5 +58,7 @@ jobs:
5458
run: go mod download
5559
- name: Run Docker Component Tests
5660
if: steps.changes.outputs.src == 'true'
61+
env:
62+
CTF_CONFIGS: ${{ matrix.config-file }}
5763
run: |
58-
go test -timeout 5m -v -count 1 -run TestLoad
64+
go test -timeout 5m -v -count 1 -run ${{ matrix.test-name }}

0 commit comments

Comments
 (0)