-
Notifications
You must be signed in to change notification settings - Fork 114
42 lines (39 loc) · 1.02 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
name: Continuous Integration
on:
push:
pull_request:
schedule:
- cron: "0 0 1,15 * *"
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
crate: [im, im-rc]
rust: [stable, beta, nightly]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
- name: Install cargo tooling
run: cargo install cargo-make cargo-script
- uses: actions/checkout@v1
- name: Prepare distribution folders
run: cargo make prepare-release
- name: Run tests
run: |
cd dist/${{ matrix.crate }}
cargo test --all-features
cargo test --no-default-features
clippy:
runs-on: ubuntu-latest
steps:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: stable
components: clippy
- uses: actions/checkout@v1
- name: Clippy
run: cargo clippy -- -D warnings