-
Notifications
You must be signed in to change notification settings - Fork 14
34 lines (27 loc) · 850 Bytes
/
unit_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Unit Tests
on:
push:
branches: [ main, develop, "release/**" ]
pull_request:
branches: [ main, develop, "release/**" ]
env:
CARGO_TERM_COLOR: always
jobs:
unit-test:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
path: ./repos/${{ secrets.REPO_NAME }}
ref: ${{ github.ref }}
# Install Protocol Buffers Compiler
- name: Install Protobuf Compiler (protoc)
run: sudo apt-get install -y protobuf-compiler
- name: Change to project directory
run: cd ./repos/${{ secrets.REPO_NAME }}
# Run unit tests
- name: Run unit tests
run: cargo test --workspace --all-features
working-directory: ./repos/${{ secrets.REPO_NAME }}