-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 951 Bytes
/
format.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: Format
on:
push:
branches:
- main
pull_request:
branches:
- main
- 'epic/**'
- 'support/**'
paths:
- '.github/workflows/format.yml'
- '**.rs'
- '**.toml'
- '**.ts'
- '**.js'
- '**.json'
jobs:
format:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
# we use nightly to get access to advanced format capabilities
- name: Setup Rust
uses: './.github/actions/rust/rust-setup'
with:
toolchain: nightly
components: rustfmt
- name: Install cargo-license-template
run: cargo install cargo-license-template
- name: core fmt check
run: cargo +nightly fmt --all -- --check
- name: cargo-license-template check
run: cargo +nightly license-template --template .license_template --ignore .license_template_ignore --verbose