-
Notifications
You must be signed in to change notification settings - Fork 3
33 lines (30 loc) · 713 Bytes
/
Copy pathrust.yml
File metadata and controls
33 lines (30 loc) · 713 Bytes
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
name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
- os: windows-latest
- os: macos-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build
- name: Run tests no-features
run: cargo test
- name: Run tests lru-feature
run: cargo test --features lru-cache
- name: Run tests ttl-feature
run: cargo test --features ttl-cache
- name: Run tests all-features
run: cargo test --features lru-cache,ttl-cache