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 9d4a826
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 30 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,23 @@ on:
- master
pull_request: {}
env:
MISE_EXPERIMENTAL: 1
swift_package_resolve: swift package resolve
swift_build: swift build
swift_test: swift test
periphery_scan: ./.build/debug/periphery scan --quiet --clean-build
cache_version: 1
jobs:
lint:
strategy:
fail-fast: false
runs-on: macOS-14
name: Lint
steps:
- uses: actions/checkout@master
- uses: jdx/mise-action@v2
- name: Lint
run: mise run lint
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"
8 changes: 8 additions & 0 deletions .mise/tasks/lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
# mise description="Lint the project"
set -euo pipefail

cd $MISE_PROJECT_ROOT

swiftformat --quiet --strict
swiftlint lint --quiet --strict
8 changes: 0 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,3 @@ build_release: clean build_x86_64 build_arm64
@mkdir -p .release
@lipo -create -output .release/periphery ${EXECUTABLE_X86_64} ${EXECUTABLE_ARM64}
@strip -rSTX .release/periphery

swiftformat:
@./scripts/lint/swiftformat.sh

swiftlint:
@./scripts/lint/swiftlint.sh

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 9d4a826

Please sign in to comment.