Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
add commands
Browse files Browse the repository at this point in the history
  • Loading branch information
mironiasty committed May 27, 2024
1 parent ae950ae commit 93ad28a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:
run: brew install swift-format xcbeautify

- name: Run formatter 🎨
run: swift-format format -i -r ./**/**/*.swift --configuration swift-format-config.json
run: yarn format

- name: Run lint 👀
run: swift-format lint -r -s ./**/**/*.swift --configuration swift-format-config.json
run: yarn lint

- name: Generate mocks 🫥
run: swift package update Mockingbird && ./scripts/gen-mocks.sh
run: yarn mocks

- name: Run tests 💀
run: set -o pipefail && xcodebuild -scheme FishjamClientTests test -destination "platform=iOS Simulator,name=iPhone 14,OS=latest" | xcbeautify
run: yarn test
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,12 @@
"devDependencies": {
"@release-it/bumper": "^4.0.0",
"release-it": "^15.5.0"
},
"scripts": {
"prepare": "./scripts/init.sh",
"lint": "swift-format lint -r -s ./**/**/*.swift --configuration swift-format-config.json",
"format": "swift-format format -r -i ./**/**/*.swift --configuration swift-format-config.json",
"test": "set -o pipefail && xcodebuild -scheme FishjamClientTests test -destination \"platform=iOS Simulator,name=iPhone 14,OS=latest\" | xcbeautify",
"mocks": "swift package update Mockingbird && ./scripts/gen-mocks.sh"
}
}
}

0 comments on commit 93ad28a

Please sign in to comment.