Skip to content

Commit 38b88a2

Browse files
authored
chore(ci): concurrency group for integration test (#93)
Add a concurrency group for integration test workflow. Integration tests are flaky otherwise. Workflow is now triggered automatically without approval, but will queue up if there's other runs active at the time. Integration tests depend on the test workflow to pass. Signed-off-by: Ville Vesilehto <ville.vesilehto@upcloud.com>
1 parent 917a7dd commit 38b88a2

File tree

2 files changed

+27
-43
lines changed

2 files changed

+27
-43
lines changed

.github/workflows/integration-test.yml

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

.github/workflows/test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,30 @@ jobs:
3030

3131
- name: Run unit tests
3232
run: make test
33+
34+
integration-test:
35+
needs: test
36+
concurrency:
37+
group: integration-test-${{ matrix.os }}
38+
strategy:
39+
matrix:
40+
os: [ubuntu-latest, macos-latest, windows-latest]
41+
42+
runs-on: ${{ matrix.os }}
43+
44+
steps:
45+
- name: Checkout
46+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
47+
48+
- name: Setup Go
49+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
50+
with:
51+
go-version-file: "go.mod"
52+
53+
- name: Run integration tests
54+
env:
55+
UPCLOUD_USERNAME: ${{ secrets.UPCLOUD_API_USER }}
56+
UPCLOUD_PASSWORD: ${{ secrets.UPCLOUD_API_PASSWORD }}
57+
PACKER_ACC: 1
58+
run: make test_integration
59+

0 commit comments

Comments
 (0)