summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorfx <[email protected]>2023-10-08 23:29:18 +0200
committerfx <[email protected]>2023-10-08 23:29:18 +0200
commit159cb1b3c940440ebe03e5042c361be563324978 (patch)
treecc522cdd00bf33b7bc923b87aa63715b02bd04ff /.github/workflows
parent920496c85bdf0d017eaf837cbacd136d7d828669 (diff)
parentfd10e6b6be475458354c189546605d81e9d1d1ce (diff)
downloadwebol-159cb1b3c940440ebe03e5042c361be563324978.tar
webol-159cb1b3c940440ebe03e5042c361be563324978.tar.gz
webol-159cb1b3c940440ebe03e5042c361be563324978.zip
get workflows
Merge branch 'main' of github.com:FxQnLr/webol
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/test.yml44
1 files changed, 44 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..cd938eb
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,44 @@
1name: build
2
3on:
4 push:
5 branches: [ "main" ]
6 pull_request:
7 branches: [ "main" ]
8 workflow_dispatch:
9
10env:
11 SCCACHE_GHA_ENABLED: "true"
12 RUSTC_WRAPPER: "sccache"
13 CARGO_TERM_COLOR: always
14
15jobs:
16 build:
17
18 runs-on: ubuntu-latest
19
20 steps:
21 - name: Run sccache-cache
22 uses: mozilla-actions/[email protected]
23
24 - uses: actions/checkout@v3
25 - uses: actions-rs/toolchain@v1
26 with:
27 toolchain: stable
28 components: rustfmt, clippy
29 override: true
30
31 - name: Run cargo test
32 uses: actions-rs/cargo@v1
33 with:
34 command: test
35
36 - name: Run cargo check
37 uses: actions-rs/cargo@v1
38 with:
39 command: check
40
41 - name: Run cargo clippy
42 uses: actions-rs/cargo@v1
43 with:
44 command: clippy