Skip to content

Commit

Permalink
add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
insipx committed Jan 31, 2025
1 parent ba3a713 commit 12f19d7
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/lint-toml.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Lint TOML
on:
push:
branches:
- main
pull_request:
paths:
- "**/*.toml"
jobs:
lint:
name: Lint
runs-on: warp-ubuntu-latest-x64-16x
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Taplo
env:
version: "0.9.3"
run: |
curl -Ls "https://github.com/tamasfe/taplo/releases/download/${{ env.version }}/taplo-full-linux-x86_64.gz" | \
gzip -d > taplo && \
chmod +x taplo && \
sudo mv taplo /usr/local/bin/taplo
- name: Run format check
run: taplo format --check
- name: Run validation check
run: taplo --check https://json.schemastore.org/cargo.json
3 changes: 0 additions & 3 deletions .taplo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,3 @@ keys = ["dependencies"]

[rule.formatting]
reorder_keys = true

[schema]
path = "https://json.schemastore.org/cargo.json"

0 comments on commit 12f19d7

Please sign in to comment.