Run tests with GitHub actions

This commit is contained in:
B. Blechschmidt 2023-03-22 15:39:08 +01:00
parent e509a81d67
commit 5cbb13247f
4 changed files with 36 additions and 4 deletions

View file

@ -1,6 +1,6 @@
on: [push, pull_request]
name: Code Formatting
name: Build and Formatting Tests
jobs:
check:

27
.github/workflows/tests.yml vendored Normal file
View file

@ -0,0 +1,27 @@
on:
pull_request_review:
types: [submitted]
push:
workflow_dispatch:
name: Integration Tests
jobs:
proxy_tests:
name: Proxy Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --no-run
- env:
SOCKS5_SERVER: ${{ secrets.SOCKS5_SERVER }}
HTTP_SERVER: ${{ secrets.HTTP_SERVER }}
run: sudo -E find -wholename './target/debug/deps/proxy-*' -executable -exec "{}" \;