-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (80 loc) · 2.43 KB
/
pull_request.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Pull Request
on:
pull_request:
paths:
- "crates/**"
- "packages/**"
- "Cargo.toml"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
format:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/rust-setup
with:
components: rustfmt
bins: taplo-cli
github-token: ${{ secrets.GITHUB_TOKEN }}
- run: cargo fmt --all --check
- run: taplo format --check
lint:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/node-setup
- uses: ./.github/actions/yarn-setup
- run: yarn biome check
typecheck:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/node-setup
- uses: ./.github/actions/yarn-setup
- run: yarn tsc --noEmit
test:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/node-setup
- uses: ./.github/actions/yarn-setup
- run: yarn vitest run
lint-rust:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/rust-setup
with:
components: clippy
github-token: ${{ secrets.GITHUB_TOKEN }}
- run: cargo clippy
test-rust:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
strategy:
fail-fast: false
matrix:
settings:
- host: macos-13
target: x86_64-apple-darwin
- host: macos-latest
target: aarch64-apple-darwin
- host: ubuntu-latest
target: x86_64-unknown-linux-gnu
- host: ubuntu-latest
target: x86_64-unknown-linux-musl
- host: windows-latest
target: x86_64-pc-windows-msvc
runs-on: ${{ matrix.settings.host }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/rust-setup
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- run: cargo test --workspace