Merge pull request #58 from Orange-OpenSource/feature/add-github-action

Add Github Action
This commit is contained in:
Fabrice Reix 2020-10-31 13:33:15 +01:00 committed by GitHub
commit 0ca6b9618d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

20
.github/workflows/rust.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Rust
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: pip3 install Flask && cd integration && python3 server.py &
- run: wget https://snapshots.mitmproxy.org/5.2/mitmproxy-5.2-linux.tar.gz -O - | tar -xz && ./mitmdump -p 8888 --modify-header "/From-Proxy/Hello" &
- name: Run build
run: ./build.sh
- name: Run integration tests
run: export PATH="$PWD/target/debug:$PATH" && integration/integration.sh