Skip to content

Commit b205b5e

Browse files
committed
Merge branch 'master' of https://github.com/Congyuwang/cdlist
2 parents 50b1aab + 84b30f1 commit b205b5e

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/tests.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Tests
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+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: rust-toolchain
20+
uses: actions-rs/toolchain@v1
21+
with:
22+
toolchain: nightly
23+
profile: minimal
24+
components: rustfmt, clippy
25+
- name: Format check
26+
run: cargo fmt --check
27+
- name: Clippy
28+
run: cargo clippy -- -D warnings
29+
- name: Build
30+
run: cargo build --verbose --release
31+
- name: Run tests
32+
run: cargo test --release

0 commit comments

Comments
 (0)