mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-05-15 14:32:46 +00:00
Run tests with GitHub actions
This commit is contained in:
parent
e509a81d67
commit
5cbb13247f
4 changed files with 36 additions and 4 deletions
|
@ -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
27
.github/workflows/tests.yml
vendored
Normal 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 "{}" \;
|
Loading…
Add table
Add a link
Reference in a new issue