-
Notifications
You must be signed in to change notification settings - Fork 85
45 lines (41 loc) · 1023 Bytes
/
test-pr.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
name: Test (PR)
on: [pull_request]
env:
BUILD: false
CARGO_TERM_COLOR: always
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
build: [linux-stable, macos-stable, windows-stable]
include:
- build: linux-stable
os: ubuntu-latest
rust: stable
- build: macos-stable
os: macos-latest
rust: stable
- build: windows-stable
os: windows-latest
rust: stable
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Setup environment
run: |
chmod +x ci/buildvars.sh
ci/buildvars.sh
- name: Install Rust
run: |
rustup update ${{ matrix.rust }} --no-self-update
rustup update
rustup default ${{ matrix.rust }}
if: env.BUILD == 'true'
- name: Run Tests
run: make test
env:
RUST_BACKTRACE: 1