Skip to content

Commit b937564

Browse files
authored
ci: init (#50)
1 parent 45a56ef commit b937564

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: ci
2+
on:
3+
push:
4+
branches: [ master ]
5+
pull_request:
6+
branches: [ master ]
7+
jobs:
8+
build:
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
platform:
13+
- ubuntu-18.04
14+
runs-on: ${{ matrix.platform }}
15+
steps:
16+
- name: Check out
17+
uses: actions/checkout@v2
18+
with:
19+
submodules: recursive
20+
- name: Linux Get dependencies
21+
run: sudo apt install -y build-essential libncurses5-dev libreadline-dev libssl-dev perl luarocks
22+
23+
- name: Linux Before install
24+
run: |
25+
sudo luarocks install luacheck
26+
27+
- name: Linux Install
28+
run: |
29+
wget -qO - https://openresty.org/package/pubkey.gpg | sudo apt-key add -
30+
sudo apt-get -y install software-properties-common
31+
sudo add-apt-repository -y "deb http://openresty.org/package/ubuntu $(lsb_release -sc) main"
32+
sudo apt-get update
33+
sudo apt-get install openresty
34+
35+
- name: Linux Script
36+
run: |
37+
sudo luarocks install rockspec/jsonschema-master-0.rockspec
38+
export PATH=$OPENRESTY_PREFIX/nginx/sbin:$PATH
39+
make test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
test*.lua
44
go
55
\.*
6+
!.github/
67
deps

0 commit comments

Comments
 (0)