forked from rerun-io/rerun
-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (36 loc) · 1.09 KB
/
toml.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 (TOML)
on:
pull_request:
push:
branches:
- "main"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} # Cancel previous CI jobs on the same branch
cancel-in-progress: true
jobs:
toml-lints:
name: Lint TOML files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.67.0
override: true
- name: Set up cargo cache
uses: Swatinem/rust-cache@v2
with:
# See: https://github.com/rerun-io/rerun/pull/497
env-vars: CARGO CC CFLAGS CXX CMAKE RUST CACHE_KEY
# Don't update the cache -- it will be updated by the lint job
# TODO(jleibs): this job will likely run before rust.yml updates
# the cache. Better cross-job sequencing would be nice here
save-if: false
- name: Install taplo-cli
uses: baptiste0928/cargo-install@v1
with:
crate: taplo-cli
- name: Taplo check
run: |
taplo fmt --check