diff options
author | FxQnLr <[email protected]> | 2023-10-15 19:11:40 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2023-10-15 19:11:40 +0200 |
commit | aa6e227d6c92fe908e24df72c8e9f0a3aa5a2784 (patch) | |
tree | b96ab6746f8eab47dbba65197439700d195dc234 /.github/workflows/pull_request.yml | |
parent | 66e68aa1d0499bba4ff579022169651d6bf9bcf5 (diff) | |
parent | 435a21ade9c92a458186961e28c5c08e60ad8266 (diff) | |
download | webol-aa6e227d6c92fe908e24df72c8e9f0a3aa5a2784.tar webol-aa6e227d6c92fe908e24df72c8e9f0a3aa5a2784.tar.gz webol-aa6e227d6c92fe908e24df72c8e9f0a3aa5a2784.zip |
Merge pull request #3 from FxQnLr/fixed-pull-test
fix pull build stuff
Diffstat (limited to '.github/workflows/pull_request.yml')
-rw-r--r-- | .github/workflows/pull_request.yml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 0000000..4466d7c --- /dev/null +++ b/.github/workflows/pull_request.yml | |||
@@ -0,0 +1,41 @@ | |||
1 | name: check | ||
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 | ||
37 | |||
38 | - name: run test | ||
39 | uses: actions-rs/cargo@v1 | ||
40 | with: | ||
41 | command: test | ||