-
Notifications
You must be signed in to change notification settings - Fork 14
42 lines (39 loc) · 987 Bytes
/
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: Build & Test
on:
push:
branches: [ "main" ]
pull_request:
env:
CARGO_TERM_COLOR: always
ETH_HTTP_RPC: https://eth.llamarpc.com
jobs:
test:
name: Test ${{ matrix.rust }} ${{ matrix.flags }}
timeout-minutes: 30
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
rust:
- "stable"
- "nightly"
flags:
# No features
- "--no-default-features"
# Default features
- ""
# All features
- "--all-features"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- name: Install cargo-nextest
uses: taiki-e/install-action@nextest
- name: Build
run: cargo build --workspace ${{ matrix.flags }}
- name: Test
run: cargo nextest run --workspace ${{ matrix.flags }}