-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (38 loc) · 965 Bytes
/
test.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
48
49
50
name: CI
env:
SQLX_OFFLINE: true
CARGO_TERM_COLOR: always
on:
push:
branches:
- main
paths-ignore:
- "**.md"
pull_request:
paths-ignore:
- "**.md"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
check:
name: Test Suite
runs-on: chortle
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Problem Matchers
uses: r7kamura/rust-problem-matchers@v1
- run: rustup toolchain install stable --profile minimal
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Install Cargo Make
uses: davidB/rust-cargo-make@v1
- name: Run Formatter
run: cargo make format-ci
- name: Run Clippy
run: cargo make lint-ci
- name: Build
run: cargo check --all-features