Skip to content

Commit

Permalink
fix(ci) run docker tests only on master, not on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieske committed Oct 22, 2022
1 parent ce6a215 commit edb2e5d
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/docker.yml
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
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ jobs:
env: TEST_SCRIPT="assets/ci/pongo_shell.test.sh assets/ci/pongo_luacov.test.sh"
- name: pongo build, pongo expose
env: TEST_SCRIPT="assets/ci/pongo_build.test.sh assets/ci/pongo_expose.test.sh"
- name: pongo in docker
env: TEST_SCRIPT="assets/ci/pongo_docker.test.sh"
- name: pongo run (CE releases)
env: TEST_SCRIPT="assets/ci/pongo_run_ce.test.sh"
- name: pongo run (EE releases)
Expand Down

0 comments on commit edb2e5d

Please sign in to comment.