Enable Azure integration tests

Tests are configured in such a way that they only run for `main`.

Signed-off-by: Hidde Beydals <hello@hidde.co>
This commit is contained in:
Hidde Beydals 2022-03-03 12:34:36 +01:00
parent bd12cdba17
commit d55a75930c
1 changed files with 10 additions and 0 deletions

View File

@ -29,6 +29,11 @@ jobs:
${{ runner.os }}-go-
- name: Verify
run: make verify
- name: Enable integration tests
# Only run integration tests for main branch
if: github.ref == 'refs/heads/main'
run: |
echo 'GO_TEST_ARGS="-tags integration"' >> $GITHUB_ENV
- name: Run tests
run: make test
- name: Setup Kubernetes
@ -56,6 +61,11 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.17.x
- name: Enable integration tests
# Only run integration tests for main branch
if: github.ref == 'refs/heads/main'
run: |
echo 'GO_TEST_ARGS="-tags integration"' >> $GITHUB_ENV
- name: Run tests
run: make test
- name: Prepare