forked from bochuxt/curiefense
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (31 loc) · 1.07 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
name: Run curiefense Rust tests
on:
pull_request:
paths:
- "curiefense/curieproxy/rust/**"
- ".github/workflows/run-curieconf-rust-tests.yml"
jobs:
test:
name: Test Suite
runs-on: ubuntu-20.04
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: install dependencies
run: sudo apt-get -y --no-install-recommends install libhyperscan-dev pkg-config libluajit-5.1-dev luajit
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt
- name: copy grasshopper
working-directory: ./curiefense/curieproxy/rust
run: 'sudo cp static/libgrasshopper.so /usr/lib && sudo ldconfig'
- name: Run cargo fmt
working-directory: ./curiefense/curieproxy/rust
run: 'cargo fmt --all -- --check'
- name: Run cargo tests
working-directory: ./curiefense/curieproxy/rust
run: 'cargo test --exclude curiefense-lua --workspace'