Skip to content

Commit d55a759

Browse files
committed
Enable Azure integration tests
Tests are configured in such a way that they only run for `main`. Signed-off-by: Hidde Beydals <[email protected]>
1 parent bd12cdb commit d55a759

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/e2e.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ jobs:
2929
${{ runner.os }}-go-
3030
- name: Verify
3131
run: make verify
32+
- name: Enable integration tests
33+
# Only run integration tests for main branch
34+
if: github.ref == 'refs/heads/main'
35+
run: |
36+
echo 'GO_TEST_ARGS="-tags integration"' >> $GITHUB_ENV
3237
- name: Run tests
3338
run: make test
3439
- name: Setup Kubernetes
@@ -56,6 +61,11 @@ jobs:
5661
uses: actions/setup-go@v2
5762
with:
5863
go-version: 1.17.x
64+
- name: Enable integration tests
65+
# Only run integration tests for main branch
66+
if: github.ref == 'refs/heads/main'
67+
run: |
68+
echo 'GO_TEST_ARGS="-tags integration"' >> $GITHUB_ENV
5969
- name: Run tests
6070
run: make test
6171
- name: Prepare

0 commit comments

Comments
 (0)