-
Notifications
You must be signed in to change notification settings - Fork 30
47 lines (42 loc) · 1.34 KB
/
ci.yml
File metadata and controls
47 lines (42 loc) · 1.34 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
name: ci
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
fail-fast: false
matrix:
platform:
- ubuntu-22.04
runs-on: ${{ matrix.platform }}
steps:
- name: Check out
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Lua
uses: leafo/gh-actions-lua@v10
with:
luaVersion: "5.1.5"
- name: Setup Luarocks
uses: leafo/gh-actions-luarocks@v4
with:
luarocksVersion: "3.8.0"
- name: Linux Get dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential libncurses5-dev libreadline-dev libssl-dev perl libpcre3-dev
- name: Linux Install
run: |
wget -qO - https://openresty.org/package/pubkey.gpg | sudo gpg --dearmor -o /usr/share/keyrings/openresty.gpg
echo "deb [signed-by=/usr/share/keyrings/openresty.gpg] http://openresty.org/package/ubuntu $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/openresty.list
sudo apt-get update
sudo apt-get install -y openresty
- name: Linux Script
run: |
luarocks make rockspec/jsonschema-master-0.rockspec
export PATH=$OPENRESTY_PREFIX/nginx/sbin:$PATH
make test