Skip to content

Commit f3b85cd

Browse files
committed
ci: add rust.yml
1 parent 9e8c78d commit f3b85cd

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
fmt:
14+
name: Format
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
20+
- name: Check
21+
run: bash contrib/scripts/check-fmt.sh check
22+
23+
check-crate:
24+
name: Check crate
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v3
29+
30+
- name: Install Flutter
31+
uses: subosito/flutter-action@v2
32+
with:
33+
flutter-version: 'latest'
34+
35+
- name: Check
36+
run: bash contrib/scripts/check-crate.sh

0 commit comments

Comments
 (0)