Skip to content

Commit fbb36dd

Browse files
committed
chore(ci): add rust test to ci
1 parent 25a34f0 commit fbb36dd

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/rust-test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: 'Rust tests'
3+
4+
'on':
5+
pull_request: {}
6+
workflow_dispatch: {}
7+
push:
8+
branches:
9+
- main
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
14+
15+
jobs:
16+
cargo-build-test:
17+
name: 'Build and run tests'
18+
runs-on: ubuntu-latest
19+
permissions:
20+
contents: read
21+
issues: read
22+
checks: write
23+
pull-requests: write
24+
steps:
25+
- name: 'Checkout source code'
26+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
27+
28+
- name: 'Run cargo build'
29+
run: cargo build
30+
31+
- name: 'Run cargo test'
32+
run: cargo test

0 commit comments

Comments
 (0)