forked from MIERUNE/plateau-gis-converter
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (40 loc) · 946 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: CI
on:
push:
branches:
- main
tags:
- "*"
pull_request:
env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUSTUP_MAX_RETRIES: 10
RUST_BACKTRACE: short
ACTION_LOG_DISABLE: true
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: install required tools
uses: taiki-e/install-action@v2
with:
tool: taplo-cli
- name: Cache cargo registry
uses: Swatinem/rust-cache@v2
with:
shared-key: "ci"
- name: check
run: cargo check --all
- name: rustfmt
run: cargo fmt --all -- --check
- name: clippy
run: cargo clippy --all -- -D warnings
- name: taplo
run: taplo fmt --check
- name: run tests
run: cargo test --workspace --all-targets --all-features