-
Notifications
You must be signed in to change notification settings - Fork 84
58 lines (48 loc) · 1.5 KB
/
automated-tests.yaml
File metadata and controls
58 lines (48 loc) · 1.5 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
name: Scheduled Automated Tests
on:
workflow_dispatch:
schedule:
- cron: '0 15 * * *'
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}
env:
VITE_PORTAL_API_URL: ${{ vars.VITE_PORTAL_API_URL }}
jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
gateway:
- '3.13'
steps:
- name: Harden Runner
uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0
with:
egress-policy: audit
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
submodules: 'recursive'
- name: Install deps
uses: './.github/reusable-steps/install-deps'
- name: Run site
uses: './.github/reusable-steps/run-site'
- name: Download Kong License
uses: Kong/kong-license@master
id: getLicense
with:
op-token: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
- name: Generate instruction files
uses: './.github/reusable-steps/generate-instruction-files'
- name: Run tests
working-directory: tools/automated-tests
env:
KONG_LICENSE_DATA: ${{ steps.getLicense.outputs.license }}
DEPLOYMENT_MODEL: on-prem
PRODUCTS: ai-gateway,gateway
GATEWAY_VERSION: ${{ matrix.gateway }}
run: |
DEBUG=tests:*,debug npm run run-tests
- name: Publish Test Report
uses: './.github/reusable-steps/publish-test-report'
if: always()