mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-05-15 06:22:45 +00:00
Add CI workflow for functional tests
This commit is contained in:
parent
03f98a0741
commit
c36c4ecf1b
3 changed files with 51 additions and 16 deletions
33
.github/workflows/tests.yml
vendored
Normal file
33
.github/workflows/tests.yml
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
on:
|
||||
pull_request_review:
|
||||
types: [submitted]
|
||||
push:
|
||||
workflow_dispatch:
|
||||
pull_request_target:
|
||||
types: [labeled]
|
||||
|
||||
name: Integration Tests
|
||||
|
||||
jobs:
|
||||
proxy_tests:
|
||||
name: Proxy Tests
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'safe to test')
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
override: true
|
||||
- name: Populate .env
|
||||
env:
|
||||
DOTENV: ${{ secrets.DOTENV }}
|
||||
run: echo "$DOTENV" > .env
|
||||
- name: Run tests
|
||||
run: >-
|
||||
pwd;
|
||||
ls -la;
|
||||
sudo python -m pip install -r tests/requirements.txt;
|
||||
cargo build --release;
|
||||
sudo python tests/tests.py
|
Loading…
Add table
Add a link
Reference in a new issue