diff options
author | FxQnLr <[email protected]> | 2023-10-15 19:05:03 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2023-10-15 19:05:03 +0200 |
commit | 65cb5d6e762a7cb53f9a95d93ac7237cc8101e0d (patch) | |
tree | 81b032a3b3656bf1b2d3b5b6833f059baa7f906e /.github/workflows | |
parent | 193a82850926679da02efba6dc44ce0bc9b1946e (diff) | |
download | webol-65cb5d6e762a7cb53f9a95d93ac7237cc8101e0d.tar webol-65cb5d6e762a7cb53f9a95d93ac7237cc8101e0d.tar.gz webol-65cb5d6e762a7cb53f9a95d93ac7237cc8101e0d.zip |
Create pull_request.yml
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/pull_request.yml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 0000000..40a7490 --- /dev/null +++ b/.github/workflows/pull_request.yml | |||
@@ -0,0 +1,36 @@ | |||
1 | name: build | ||
2 | |||
3 | on: | ||
4 | pull_request: | ||
5 | branches: [ "main" ] | ||
6 | workflow_dispatch: | ||
7 | |||
8 | env: | ||
9 | SCCACHE_GHA_ENABLED: "true" | ||
10 | RUSTC_WRAPPER: "sccache" | ||
11 | SQLX_OFFLINE: "true" | ||
12 | CARGO_TERM_COLOR: always | ||
13 | |||
14 | jobs: | ||
15 | build: | ||
16 | runs-on: ubuntu-latest | ||
17 | steps: | ||
18 | - name: Run sccache-cache | ||
19 | uses: mozilla-actions/[email protected] | ||
20 | |||
21 | - uses: actions/checkout@v4 | ||
22 | - uses: actions-rs/toolchain@v1 | ||
23 | with: | ||
24 | toolchain: stable | ||
25 | components: rustfmt, clippy | ||
26 | override: true | ||
27 | |||
28 | - name: Run cargo check | ||
29 | uses: actions-rs/cargo@v1 | ||
30 | with: | ||
31 | command: check | ||
32 | |||
33 | - name: Run Clippy | ||
34 | uses: actions-rs/cargo@v1 | ||
35 | with: | ||
36 | command: clippy | ||