Skip to content

use GO111MODULE in go mod and vendor #22

use GO111MODULE in go mod and vendor

use GO111MODULE in go mod and vendor #22

Workflow file for this run

# 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' }}

Check failure on line 15 in .github/workflows/release-tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release-tests.yml

Invalid workflow file

You have an error in your yaml syntax on line 15
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