Skip to content

Commit

Permalink
Use mise for dev tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
ileitch committed Aug 24, 2024
1 parent f634ed7 commit 0a88b72
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 24 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ env:
periphery_scan: ./.build/debug/periphery scan --quiet --clean-build
cache_version: 1
jobs:
lint:
strategy:
fail-fast: true
runs-on: macOS-14
name: Lint
steps:
- uses: actions/checkout@master
- uses: jdx/mise-action@v2
- name: SwiftLint
run: make swiftlint
- name: SwiftFormat
run: make swiftformat
macOS:
strategy:
fail-fast: false
Expand Down
3 changes: 3 additions & 0 deletions .mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[tools]
swiftlint = "0.56.1"
swiftformat = "0.54.3"
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ build_release: clean build_x86_64 build_arm64
@strip -rSTX .release/periphery

swiftformat:
@./scripts/lint/swiftformat.sh
@mise exec -- swiftformat --quiet --strict .

swiftlint:
@./scripts/lint/swiftlint.sh
@mise exec -- swiftlint lint --quiet --strict

lint: swiftlint swiftformat
11 changes: 0 additions & 11 deletions scripts/lint/swiftformat.sh

This file was deleted.

11 changes: 0 additions & 11 deletions scripts/lint/swiftlint.sh

This file was deleted.

0 comments on commit 0a88b72

Please sign in to comment.