forked from bochuxt/curiefense
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.36 KB
/
run-curieconf-rust-tests.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
name: Run curiefense Rust tests
on:
pull_request:
paths:
- "curiefense/iptools/**"
- ".github/workflows/run-curieconf-rust-tests.yml"
jobs:
test:
name: Test Suite
runs-on: ubuntu-18.04
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt
- name: Run cargo fmt
working-directory: ./curiefense/iptools
run: 'cargo fmt --all -- --check'
- name: Run lua test
working-directory: ./curiefense/iptools
run: |
# TODO: Find a way to simplify this
sudo apt-get update
sudo apt-get -qq -y --no-install-recommends install jq luarocks libpcre2-dev libgeoip-dev python gcc g++ make unzip libhyperscan4 libhyperscan-dev
sudo luarocks install lrexlib-pcre2
sudo luarocks install lua-cjson
sudo luarocks install lua-resty-string
sudo luarocks install luafilesystem
sudo luarocks install luasocket
sudo luarocks install redis-lua
sudo luarocks install compat53
sudo luarocks install mmdblua
sudo luarocks install luaipc
sudo luarocks install lua-resty-injection
make test