-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (42 loc) · 1.03 KB
/
ci.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
35
36
37
38
39
40
41
42
43
44
45
46
47
on:
push:
pull_request:
name: CI
jobs:
test:
name: Build and test crates
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.70.0
override: true
- name: Build
run: cargo build
- name: Test
run: cargo test
parse:
name: Parse demo repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.70.0
override: true
- name: Clone repo
run: git clone https://github.com/coredump-ch/gitcash-demo-repo/
- name: Calculate balances
run: cargo run -- --repo-path gitcash-demo-repo balances
rustfmt:
name: Check code formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.70.0
override: true
components: rustfmt
- run: cargo fmt -- --check