-
Notifications
You must be signed in to change notification settings - Fork 15
47 lines (43 loc) · 1005 Bytes
/
pull_request.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
name: Pull Requests
on:
pull_request_target:
branches:
- master
push:
branches:
- master
jobs:
build:
strategy:
matrix:
os: [ self-hosted, windows-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt
override: true
profile: minimal
- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
cache-targets: "false"
- name: Check formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Check compilation
uses: actions-rs/cargo@v1
with:
command: check
- name: Test
uses: actions-rs/cargo@v1
with:
command: test