Skip to content

Commit 9573e79

Browse files
authored
Merge pull request #1 from n0-computer/arqu/ci
feat: ci
2 parents cb37cc7 + 78d42dc commit 9573e79

File tree

2 files changed

+53
-22
lines changed

2 files changed

+53
-22
lines changed

.github/workflows/ci.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
env:
12+
RUST_BACKTRACE: 1
13+
RUSTFLAGS: -Dwarnings
14+
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
17+
cancel-in-progress: true
18+
19+
jobs:
20+
lint:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
- uses: dtolnay/rust-toolchain@stable
25+
with:
26+
components: rustfmt, clippy
27+
- uses: swatinem/rust-cache@v2
28+
- name: cargo fmt
29+
run: cargo fmt --all -- --check
30+
- name: cargo clippy
31+
run: cargo clippy --workspace --all-targets
32+
33+
test:
34+
runs-on: ${{ matrix.os }}
35+
strategy:
36+
fail-fast: false
37+
matrix:
38+
os: [ubuntu-latest, macos-latest, windows-latest]
39+
steps:
40+
- uses: actions/checkout@v4
41+
- uses: dtolnay/rust-toolchain@stable
42+
- uses: swatinem/rust-cache@v2
43+
- name: cargo test
44+
run: cargo test --workspace --all-targets
45+
46+
check-msrv:
47+
runs-on: ubuntu-latest
48+
steps:
49+
- uses: actions/checkout@v4
50+
- uses: dtolnay/[email protected]
51+
- uses: swatinem/rust-cache@v2
52+
- name: cargo check
53+
run: cargo check --workspace

.github/workflows/rust.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)