diff options
author | FxQnLr <[email protected]> | 2024-02-12 15:04:10 +0100 |
---|---|---|
committer | FxQnLr <[email protected]> | 2024-02-12 15:04:10 +0100 |
commit | e50a868f69b602cc0bc84d51e9940878924f49ef (patch) | |
tree | 055bae9ef4e65f53b826b240f0b8e3b15b73693e /.github/workflows/pull_request.yml | |
parent | 48ef94cf8633821f0fe3c0204580648d44f33015 (diff) | |
download | webol-e50a868f69b602cc0bc84d51e9940878924f49ef.tar webol-e50a868f69b602cc0bc84d51e9940878924f49ef.tar.gz webol-e50a868f69b602cc0bc84d51e9940878924f49ef.zip |
change to check on every pull request
Diffstat (limited to '.github/workflows/pull_request.yml')
-rw-r--r-- | .github/workflows/pull_request.yml | 63 |
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 @@ | |||
1 | name: check | 1 | name: check |
2 | 2 | ||
3 | on: | 3 | on: [ pull_request, workflow_dispatch ] |
4 | pull_request: | 4 | |
5 | branches: [ "main" ] | 5 | nv: |
6 | workflow_dispatch: | 6 | SCCACHE_GHA_ENABLED: "true" |
7 | 7 | RUSTC_WRAPPER: "sccache" | |
8 | env: | 8 | SQLX_OFFLINE: "true" |
9 | SCCACHE_GHA_ENABLED: "true" | 9 | CARGO_TERM_COLOR: always |
10 | RUSTC_WRAPPER: "sccache" | 10 | |
11 | SQLX_OFFLINE: "true" | 11 | obs: |
12 | CARGO_TERM_COLOR: always | 12 | check: |
13 | 13 | runs-on: ubuntu-latest | |
14 | jobs: | 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 | ||