-
Notifications
You must be signed in to change notification settings - Fork 3
96 lines (78 loc) · 2.07 KB
/
pull-request.yml
File metadata and controls
96 lines (78 loc) · 2.07 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: pull-request
on:
workflow_dispatch:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-pull-request
cancel-in-progress: true
jobs:
check-format:
runs-on: depot-ubuntu-24.04
env:
RUSTFLAGS: -D warnings
steps:
- name: Get Sources
uses: actions/checkout@v4
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.9
- name: Install Rust
uses: ./.github/actions/install-rust
with:
components: clippy, rustfmt
- name: cargo fmt
shell: bash
run: |
cargo fmt --check
- name: Install Protoc for the gRPC extension
uses: arduino/setup-protoc@v3
- name: cargo clippy
shell: bash
env:
RUSTC_WRAPPER: sccache
run: |
cargo clippy --locked
- uses: uncenter/setup-taplo@v1
with:
version: "0.9.3"
- name: taplo fmt check
shell: bash
run: |
taplo fmt --check
taplo check
run-tests:
runs-on: depot-ubuntu-24.04-8
strategy:
matrix:
version:
- gateway: "0.36.0"
cli: "0.92.0"
env:
RUSTFLAGS: -D warnings
steps:
- name: Get Sources
uses: actions/checkout@v4
- name: Start Docker Services
shell: bash
run: |
docker compose up -d
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.9
- name: Install Rust
uses: ./.github/actions/install-rust
- name: Install Grafbase
uses: ./.github/actions/install-grafbase
with:
gateway-version: ${{ matrix.version.gateway }}
cli-version: ${{ matrix.version.cli }}
- name: Install cargo-nextest
uses: taiki-e/install-action@v2
with:
tool: nextest
- name: Install Protoc for the gRPC extension
uses: arduino/setup-protoc@v3
- name: Run Tests
shell: bash
env:
RUSTC_WRAPPER: sccache
run: |
cargo run -p test-matrix