-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci) run docker tests only on master, not on PR
- Loading branch information
Showing
2 changed files
with
46 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Docker | ||
|
||
concurrency: | ||
group: ${{ github.workflow }} ${{ github.ref }} | ||
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- "*.md" | ||
|
||
jobs: | ||
tests: | ||
name: Tests | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
include: | ||
- name: pongo in docker | ||
env: TEST_SCRIPT="assets/ci/pongo_docker.test.sh" | ||
|
||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v3 | ||
|
||
- uses: Kong/kong-license@master | ||
with: | ||
password: ${{ secrets.PULP_PASSWORD }} | ||
|
||
- name: Install | ||
run: | | ||
sudo apt-get install figlet | ||
make install | ||
echo "~/.local/bin/" >> $GITHUB_PATH | ||
echo ${{ matrix.env }} >> $GITHUB_ENV | ||
- name: Pongo test suite | ||
env: | ||
DOCKER_USERNAME: ${{ secrets.GHA_DOCKERHUB_PULL_USER }} | ||
DOCKER_PASSWORD: ${{ secrets.GHA_KONG_ORG_DOCKERHUB_PUBLIC_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GHA_KONG_BOT_READ_TOKEN }} | ||
|
||
run: | | ||
assets/ci/run.sh --suite "Pongo test suite" $TEST_SCRIPT |
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