-
Notifications
You must be signed in to change notification settings - Fork 26
48 lines (46 loc) · 1.38 KB
/
rust.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
on: [pull_request]
name: CI
jobs:
build_and_test:
name: Tests
runs-on: ubuntu-latest
strategy:
matrix:
rust_version: [1.65, stable, beta]
timeout-minutes: 15
steps:
- uses: actions/checkout@master
- uses: edgedb/[email protected]
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust_version }}
default: true
- name: Test all features
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace --all-features
- name: Check no default features
uses: actions-rs/cargo@v1
with:
command: check
args: --no-default-features --workspace
- name: Check with `fs` feature (edgedb-tokio)
uses: actions-rs/cargo@v1
with:
command: check
args: --features=fs --package edgedb-tokio
- name: Check with env feature, edgedb-tokio
uses: actions-rs/cargo@v1
with:
command: check
args: --features=env --package edgedb-tokio
- name: Test protocol without default features
working-directory: ./edgedb-protocol
run: |
cargo test --no-default-features
- name: Test protocol with "all-types" feature
working-directory: ./edgedb-protocol
run: |
cargo test --features=all-types