forked from api7/lua-resty-healthcheck
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.28 KB
/
ci.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
47
name: CI Linux
on:
push:
branches:
- master
- release/2.3
pull_request:
branches:
- master
- release/2.3
jobs:
build:
runs-on: "ubuntu-latest"
env:
OPENRESTY_PREFIX: "/usr/local/openresty"
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Linux Get dependencies
run: sudo apt install -y cpanminus build-essential libncurses5-dev libreadline-dev libssl-dev perl luarocks
- name: Linux Before install
run: |
sudo cpanm --notest Test::Nginx > build.log 2>&1 || (cat build.log && exit 1)
sudo luarocks install luacheck
- name: Linux Install
run: |
wget -qO - https://openresty.org/package/pubkey.gpg | sudo apt-key add -
sudo apt-get -y install software-properties-common
sudo add-apt-repository -y "deb http://openresty.org/package/ubuntu $(lsb_release -sc) main"
sudo apt-get update
sudo apt-get install openresty
- name: Install Dependency
run: |
curl https://raw.githubusercontent.com/apache/apisix/master/utils/linux-install-luarocks.sh -sL | sh -
sudo make deps
- name: Linux Script
run: |
export PATH=$OPENRESTY_PREFIX/nginx/sbin:$PATH
make test