forked from moka-rs/mini-moka
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.17 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
48
49
50
51
52
name: CI
on:
push:
paths-ignore:
- '.devcontainer/**'
- '.gitpod.yml'
- '.vscode/**'
pull_request:
paths-ignore:
- '.devcontainer/**'
- '.gitpod.yml'
- '.vscode/**'
schedule:
# Run against the last commit on the default branch on Friday at 8pm (UTC?)
- cron: '0 20 * * 5'
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust:
- stable
- beta
- 1.76.0 # MSRV
- nightly # For checking minimum version dependencies.
steps:
- name: Checkout Mini Moka
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- run: cargo clean
- name: Downgrade dependencies to minimal versions (Nightly only)
if: ${{ matrix.rust == 'nightly' }}
run: cargo update -Z minimal-versions
- name: Show cargo tree
run: cargo tree
- name: Run tests (debug, sync feature)
run: cargo test --features sync
- name: Run tests (release, sync feature)
run: cargo test --release --features sync