-
Notifications
You must be signed in to change notification settings - Fork 5
59 lines (48 loc) · 1.38 KB
/
ci.yml
File metadata and controls
59 lines (48 loc) · 1.38 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
59
name: CI
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
jobs:
unit-test:
strategy:
fail-fast: false
matrix:
platform:
- ubuntu-20.04
job_name:
- linux_openresty
runs-on: ${{ matrix.platform }}
timeout-minutes: 90
steps:
- name: Check out APISIX plugins
uses: actions/checkout@v5
- name: Check out APISIX repo
run: |
sudo make init_apisix
sudo make patch_apisix
- name: Install custom module
run: |
sudo make install
- name: Launch APISIX common services
run: |
sudo make ci-env-up project_compose_ci=ci/pod/docker-compose.common.yml
working-directory: workbench
- name: Linux Get dependencies
run: |
sudo apt install -y cpanminus build-essential libncurses5-dev libreadline-dev libssl-dev perl libpcre3 libpcre3-dev libldap2-dev
- name: Linux Before install
run: |
sudo ./ci/${{ matrix.job_name }}_runner.sh before_install
working-directory: workbench
- name: Linux Do install
run: |
sudo ./ci/${{ matrix.job_name }}_runner.sh do_install
working-directory: workbench
- name: Run test case
run: |
sudo ./ci/utils/linux-common-runnner.sh run_case
working-directory: workbench