Skip to content

Commit

Permalink
add functional tests in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
yngrtc committed Feb 11, 2024
1 parent cf3746c commit 35b7837
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ftests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: ftests

on:
push:
branches: [master]
pull_request:
branches: [master]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
CARGO_TERM_COLOR: always

jobs:
ftests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: recursive

- name: Set up Rust
uses: actions/setup-rust@v1
with:
rust-version: stable

- name: Run server
run: cargo run --release --package sfu --example chat -- -d --level info & echo $! > server_pid.txt

- name: Run integration tests
run: cargo test --release

- name: Shutdown server
run: kill -INT $(cat server_pid.txt) || true

0 comments on commit 35b7837

Please sign in to comment.