-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci) add unreleased image tests (#242)
* chore(ci) add unreleased image tests * Apply suggestions from code review Co-authored-by: Patryk Małek <patryk.malek@konghq.com> * Update .github/workflows/integration-test-enterprise-nightly.yaml Co-authored-by: Patryk Małek <patryk.malek@konghq.com> Co-authored-by: Patryk Małek <patryk.malek@konghq.com>
- Loading branch information
Showing
6 changed files
with
102 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
.github/workflows/integration-test-enterprise-nightly.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: 'Integration Test : Enterprise Nightly' | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
- 'release/*' | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
test-enterprise: | ||
continue-on-error: true | ||
env: | ||
KONG_ADMIN_TOKEN: kong | ||
KONG_IMAGE_REPO: "kong/kong-gateway-internal" | ||
KONG_IMAGE_TAG: "master-alpine" | ||
KONG_ANONYMOUS_REPORTS: "off" | ||
TEST_KONG_PULL_USERNAME: ${{ secrets.GHA_DOCKERHUB_PULL_USER }} | ||
TEST_KONG_PULL_PASSWORD: ${{ secrets.GHA_KONG_ORG_DOCKERHUB_PUBLIC_TOKEN }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
# This will set KONG_LINCENSE_DATA environment variable. | ||
- uses: Kong/kong-license@9fb64ad7be1ed2b121a70990783d7c0869e531d5 | ||
id: license_step | ||
with: | ||
password: ${{ secrets.PULP_PASSWORD }} | ||
- name: Setup go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: '^1.19' | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- uses: actions/cache@v3.2.3 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Setup Kong | ||
run: make setup-kong-ee | ||
- name: Run tests | ||
run: make test-coverage-enterprise | ||
- name: Upload Code Coverage | ||
uses: codecov/codecov-action@v3.1.1 | ||
with: | ||
name: codecov-enterprise-nightly | ||
flags: enterprise-nightly,integration,enterprise | ||
fail_ci_if_error: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: 'Integration Test : Community Nightly' | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
- 'release/*' | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
test: | ||
env: | ||
KONG_IMAGE_REPO: "kong/kong" | ||
KONG_IMAGE_TAG: "master-alpine" | ||
KONG_ANONYMOUS_REPORTS: "off" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: '^1.19' | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- uses: actions/cache@v3.2.3 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Setup Kong | ||
run: make setup-kong | ||
- name: Run tests | ||
run: make test-coverage | ||
- name: Upload Code Coverage | ||
uses: codecov/codecov-action@v3.1.1 | ||
with: | ||
name: codecov-nightly | ||
flags: nightly,integration,community | ||
fail_ci_if_error: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters