generated from Kong/kong-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.34 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: "Test"
concurrency:
group: ${{ github.workflow }} ${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
on:
pull_request: {}
push:
branches:
- main
schedule:
- cron: '0 0 * * *' # every day at midnight, to test against nightlies
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
kongVersion:
- "3.3.x"
steps:
- uses: actions/checkout@v3
- uses: Kong/kong-pongo-action@v1
with:
pongo_version: master
kong_version: ${{ matrix.kongVersion }}
# Non-Kong-Inc users should provide their Enterprise license as a secret
# if testing against Enterprise versions.
# Kong Inc users should use the `Kong/kong-license` action
license: ${{ secrets.KONG_LICENSE_DATA }}
# the following 3 entries are only for Kong Inc internal use to test against
# the private Kong Enterprise development images, external users should
# delete these.
enterprise_nightly_docker_username: ${{ secrets.GHA_DOCKERHUB_PULL_USER }}
enterprise_nightly_docker_password: ${{ secrets.GHA_KONG_ORG_DOCKERHUB_PUBLIC_TOKEN }}
# github token with permissions to clone the kong-ee repo
github_token: ${{ secrets.GHA_KONG_BOT_READ_TOKEN }}
- run: pongo run -- --coverage