Skip to content

refactor: use gojson to marshal config for SHA #2126

refactor: use gojson to marshal config for SHA

refactor: use gojson to marshal config for SHA #2126

Workflow file for this run

name: tests-nightly
on:
pull_request:
types:
- labeled
workflow_dispatch: {}
jobs:
integration-tests-enterprise-postgres-nightly:
if: ${{ github.event.label.name == 'ci/run-nightly' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
steps:
- uses: Kong/kong-license@master
id: license
with:
password: ${{ secrets.PULP_PASSWORD }}
- name: checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: setup golang
uses: actions/setup-go@v4
with:
go-version: '^1.20'
- name: run integration tests
run: make test.integration.enterprise.postgres
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
KONG_LICENSE_DATA: ${{ steps.license.outputs.license }}
TEST_KONG_IMAGE: "kong/kong-gateway-internal"
TEST_KONG_TAG: "master-alpine"
TEST_KONG_PULL_USERNAME: ${{ secrets.GHA_DOCKERHUB_PULL_USER }}
TEST_KONG_PULL_PASSWORD: ${{ secrets.GHA_KONG_ORG_DOCKERHUB_PUBLIC_TOKEN }}
- name: collect test coverage
uses: actions/upload-artifact@v3
with:
name: coverage
path: coverage.nightlyenterprisepostgres.out
- name: upload diagnostics
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: diagnostics-integration-tests-enterprise-postgres-nightly
path: /tmp/ktf-diag*
if-no-files-found: ignore
integration-tests-postgres-nightly:
if: ${{ github.event.label.name == 'ci/run-nightly' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: setup golang
uses: actions/setup-go@v4
with:
go-version: '^1.20'
- name: run integration tests
run: make test.integration.postgres
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TEST_KONG_IMAGE: "kong/kong"
TEST_KONG_TAG: "master-alpine"
- name: collect test coverage
uses: actions/upload-artifact@v3
with:
name: coverage
path: coverage.nightlypostgres.out
- name: upload diagnostics
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: diagnostics-integration-tests-postgres-nightly
path: /tmp/ktf-diag*
if-no-files-found: ignore
integration-tests-dbless-nightly:
if: ${{ github.event.label.name == 'ci/run-nightly' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: setup golang
uses: actions/setup-go@v4
with:
go-version: '^1.20'
- name: run integration tests
run: make test.integration.dbless
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TEST_KONG_IMAGE: "kong/kong"
TEST_KONG_TAG: "master-alpine"
- name: collect test coverage
uses: actions/upload-artifact@v3
with:
name: coverage
path: coverage.nightlydbless.out
- name: upload diagnostics
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: diagnostics-integration-tests-dbless-nightly
path: /tmp/ktf-diag*
if-no-files-found: ignore