-
Notifications
You must be signed in to change notification settings - Fork 15
51 lines (47 loc) · 1.1 KB
/
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
48
49
50
51
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: Setup node 16 for self hosted
uses: actions/setup-node@v4
with:
node-version: 16
- 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/[email protected]
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