-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (31 loc) · 903 Bytes
/
pr.yaml
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
name: Pull Request
on: [pull_request]
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
build_and_test:
name: Cargo Test [linux]
runs-on: [self-hosted, ubuntu-x64]
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@stable
- name: Cargo Test
run: cargo test
trunk_check_runner:
name: Trunk Check runner [linux]
runs-on: [self-hosted, ubuntu-x64]
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@stable
- name: Build trunk-toolbox
run: cargo build
# Caching is only needed when using ephemeral CI runners
- name: Cache Linters/Formatters
uses: actions/cache@v2
with:
path: ~/.cache/trunk
key: trunk-${{ runner.os }}
- name: Trunk Check
uses: trunk-io/[email protected]