-
Notifications
You must be signed in to change notification settings - Fork 36
35 lines (33 loc) · 930 Bytes
/
main.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
name: CI
on:
push:
branches: master
pull_request:
branches: master
jobs:
test:
strategy:
matrix:
rust: [stable, beta, nightly]
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
- name: Install 3proxy
run: |
cd $HOME
curl -OL https://github.com/3proxy/3proxy/archive/refs/tags/0.8.13.tar.gz
tar xvf 0.8.13.tar.gz
cd 3proxy-0.8.13 && ln -s Makefile.Linux Makefile && make -j$(nproc)
sudo apt-get update
sudo apt-get install socat -y
- name: Run tests
run: |
cargo build --examples
cargo build --verbose --all
cargo test --lib --verbose
env PATH=$HOME/3proxy-0.8.13/src:$PATH tests/integration_tests.sh