Skip to content

tests(ci) switch to github actions #175

tests(ci) switch to github actions

tests(ci) switch to github actions #175

Workflow file for this run

name: Tests
on:
push:
paths-ignore:
- "*.md"
# pull_request:
# paths-ignore:
# - "*.md"
# this fails and seems to be similar to https://github.com/actions/checkout/issues/23
# the SHA checked out is not matching
jobs:
tests:
name: Tests
runs-on: ubuntu-20.04
strategy:
matrix:
include:
- name: pongo shell, LuaCov
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)
env: TEST_SCRIPT="assets/ci/pongo_run_ee.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