Skip to content

Commit 58ed477

Browse files
committed
feat(ci): try github actions
1 parent fc7b43a commit 58ed477

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI checks & tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
env:
8+
CARGO_TERM_COLOR: always
9+
CI: "true" # https://insta.rs/docs/quickstart/#continuous-integration
10+
11+
jobs:
12+
format:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- run: rustup component add rustfmt
17+
- run: cargo fmt -- --check
18+
19+
test:
20+
runs-on: ubuntu-latest
21+
strategy:
22+
matrix:
23+
toolchain:
24+
- stable
25+
- beta
26+
- nightly
27+
steps:
28+
- uses: actions/checkout@v4
29+
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
30+
- run: rustup component add clippy
31+
- run: cargo build --verbose
32+
- run: cargo clippy --all-features -- --deny warnings --forbid unsafe_code
33+
- run: cargo test --verbose
34+
35+
semver-checks:
36+
# https://github.com/obi1kenobi/cargo-semver-checks-action
37+
runs-on: ubuntu-latest
38+
steps:
39+
- name: Checkout
40+
uses: actions/checkout@v4
41+
- name: Check semver
42+
uses: obi1kenobi/cargo-semver-checks-action@v2

0 commit comments

Comments
 (0)