aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/pull_request.yml63
1 files changed, 30 insertions, 33 deletions
diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml
index 279e16d..732e9e9 100644
--- a/.github/workflows/pull_request.yml
+++ b/.github/workflows/pull_request.yml
@@ -1,35 +1,32 @@
1name: check 1name: check
2 2
3on: 3on: [ pull_request, workflow_dispatch ]
4 pull_request: 4
5 branches: [ "main" ] 5nv:
6 workflow_dispatch: 6 SCCACHE_GHA_ENABLED: "true"
7 7 RUSTC_WRAPPER: "sccache"
8env: 8 SQLX_OFFLINE: "true"
9 SCCACHE_GHA_ENABLED: "true" 9 CARGO_TERM_COLOR: always
10 RUSTC_WRAPPER: "sccache" 10
11 SQLX_OFFLINE: "true" 11obs:
12 CARGO_TERM_COLOR: always 12 check:
13 13 runs-on: ubuntu-latest
14jobs: 14 steps:
15 check: 15 - name: Run sccache-cache
16 runs-on: ubuntu-latest 16 uses: mozilla-actions/[email protected]
17 steps: 17
18 - name: Run sccache-cache 18 - uses: actions/checkout@v4
19 uses: mozilla-actions/[email protected] 19
20 20 - run: cargo check
21 - uses: actions/checkout@v4 21 - run: cargo clippy
22 22
23 - run: cargo check 23 check-release:
24 - run: cargo clippy 24 runs-on: ubuntu-latest
25 25 steps:
26 check-release: 26 - name: Run sccache-cache
27 runs-on: ubuntu-latest 27 uses: mozilla-actions/[email protected]
28 steps: 28
29 - name: Run sccache-cache 29 - uses: actions/checkout@v4
30 uses: mozilla-actions/[email protected] 30
31 31 - run: cargo check --release
32 - uses: actions/checkout@v4 32 - run: cargo clippy --release
33
34 - run: cargo check --release
35 - run: cargo clippy --release \ No newline at end of file