Merge pull request #103 #84
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test CI | |
on: | |
push: | |
branches: [ main ] | |
paths-ignore: | |
- '**/*.md' | |
- LICENSE | |
- '**/*.gitignore' | |
- examples/** | |
- .github/** | |
- view/** | |
- snapshots/** | |
- docker/** | |
- packages/** | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
test: | |
name: Rust Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: curl https://sh.rustup.rs -sSf | sudo sh -s -- -y | |
- run: sudo apt-get -y update && sudo apt-get -y install libpcap-dev telnet | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Install dependencies and build | |
run: | | |
pnpm -C apps/view install | |
pnpm -C apps/view build | |
- run: sudo ~/.cargo/bin/cargo test |