-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (55 loc) · 1.58 KB
/
run-tests.yml
File metadata and controls
59 lines (55 loc) · 1.58 KB
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
52
53
54
55
56
57
58
59
on:
workflow_call:
jobs:
cargo-audit:
runs-on: ubuntu-latest
steps:
- uses: tomphp/github-actions/checkout-rust-project@v0.2.0
- uses: actions-rs/audit-check@v1.2.0
name: Audit check cargo packages
with:
token: ${{ secrets.GITHUB_TOKEN }}
cargo-check:
runs-on: ubuntu-latest
steps:
- uses: tomphp/github-actions/checkout-rust-project@v0.2.0
- uses: actions-rs/cargo@v1.0.3
with:
command: check
cargo-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: macos-latest
- os: ubuntu-latest
- os: windows-latest
steps:
- uses: tomphp/github-actions/checkout-rust-project@v0.2.0
- uses: specdown/setup-specdown-action@v0.2.25
- name: Rename wsl bash
if: runner.os == 'Windows'
run: |
takeown /F 'C:\Windows\System32\bash.exe'
icacls 'C:\Windows\System32\bash.exe' /grant administrators:F
ren 'C:\Windows\System32\bash.exe' wsl-bash.exe
- name: Run tests
run: make test
shell: bash
lint:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
- os: windows-latest
steps:
- uses: tomphp/github-actions/checkout-rust-project@v0.2.0
with:
rust-components: rustfmt, clippy
- name: Check code
run: make lint
shell: bash
- name: Check markdown links
uses: gaurav-nelson/github-action-markdown-link-check@1.0.15
if: matrix.os == 'ubuntu-latest'