-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 858 Bytes
/
test.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
name: Test
on:
push:
schedule:
- cron: '0 0 * * *'
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
rust: [stable]
runs-on: ${{ matrix.os }}
steps:
- name: Setup Rust
uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
- name: Checkout
uses: actions/checkout@v1
- name: Cache target directory
uses: actions/cache@v1
with:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- name: Cache toolchains directory
uses: actions/cache@v1
with:
path: ~/.rustup/toolchains
key: ${{ runner.os }}-cargo-toolchains-${{ hashFiles('**/rust-toolchain') }}
- name: Run tests
run: make test