volume map #15
Workflow file for this run
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
# yamllint disable rule:line-length | ||
--- | ||
name: Run CI tests and smoke tests | ||
on: # yamllint disable-line rule:truthy | ||
workflow_run: | ||
workflows: [ "Release" ] | ||
types: | ||
- completed | ||
push: | ||
tags: | ||
- 'v*' | ||
jobs: | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
ci-tests: | ||
name: CI Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
- id: ecr-login | ||
uses: ./.github/actions/ecr-login | ||
- name: Run /ci/tests | ||
shell: bash | ||
env: | ||
GITHUB_TAG: ${{ github.ref }} | ||
GATEWAY_IMAGE: tykio/tyk-gateway:${{ GITHUB_TAG }} | ||
PLUGIN_COMPILER_IMAGE: tykio/tyk-plugin-compiler:${{ GITHUB_TAG }} | ||
run: | | ||
set -eaxo pipefail | ||
for d in ci/tests/*/ | ||
do | ||
echo Attempting to test $d | ||
if [ -d $d ] && [ -e $d/test.sh ]; then | ||
cd $d | ||
./test.sh | ||
cd - | ||
fi | ||
done | ||
smoke-tests: | ||
name: Smoke tests | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.ref, 'refs/tags') | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
- id: ecr-login | ||
uses: ./.github/actions/ecr-login | ||
- name: Run /ci/smoke-tests | ||
# This job only runs whenever a tag is created. A tag is required | ||
# for a functional plugin compiler build for when the GO_GET=1 env | ||
# is provided. The plugin compiler cannot fetch the referenced | ||
# commit from a PR, but requires a /heads or /tags reference. | ||
# | ||
# See https://github.com/golang/go/issues/31191 for more info. | ||
shell: bash | ||
env: | ||
GITHUB_TAG: ${{ github.ref }} | ||
GATEWAY_IMAGE: tykio/tyk-gateway:${{ GITHUB_TAG }} | ||
PLUGIN_COMPILER_IMAGE: tykio/tyk-plugin-compiler:${{ GITHUB_TAG }} | ||
run: | | ||
set -eaxo pipefail | ||
for d in ci/smoke-tests/*/ | ||
do | ||
echo Attempting to test $d | ||
if [ -d $d ] && [ -e $d/test.sh ]; then | ||
cd $d | ||
./test.sh | ||
cd - | ||
fi | ||
done |