forked from ledgetech/lua-resty-http
-
Notifications
You must be signed in to change notification settings - Fork 6
39 lines (32 loc) · 1018 Bytes
/
apisix-test.yml
File metadata and controls
39 lines (32 loc) · 1018 Bytes
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
name: APISIX-Test
on:
push:
paths-ignore: # Skip if only docs are updated
- '*.md'
pull_request:
branches: [master]
jobs:
run_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install deps
run: |
wget https://raw.githubusercontent.com/api7/apisix-build-tools/master/build-apisix-openresty.sh
chmod +x build-apisix-openresty.sh
./build-apisix-openresty.sh latest
- name: Install CPAN
run: |
curl -s -L http://xrl.us/cpanm > ../cpanm
chmod +x ../cpanm
sudo mv ../cpanm /bin/cpanm
- name: Install Test::Nginx
run: |
sudo cpanm -q -n Test::Nginx
git clone --depth 1 https://github.com/iresty/test-nginx.git ../test-nginx
- name: Run tests
run: |
export OR_PREFIX="/usr/local/openresty-debug"
export PATH=$OR_PREFIX/nginx/sbin:$OR_PREFIX/luajit/bin:$OR_PREFIX/bin:$PATH
echo "$PWD"
/usr/bin/prove -I../test-nginx/lib -r t/