Modern Apps git

xtool.git

Public
git clone https://git.maproj.org/xtool.git
main ▾

xtool.git / .github / workflows / swiftlint.yml

swiftlint.yml19 lines · 480 BRaw
1on:
2 push:
3 branches:
4 - main
5 pull_request:
6 paths:
7 - '.github/workflows/swiftlint.yml'
8 - '.swiftlint.yml'
9 - '**/*.swift'
10jobs:
11 swiftlint:
12 runs-on: ubuntu-latest
13 steps:
14 - uses: actions/checkout@v6
15 - name: Lint
16 run: |
17 make lint SWIFTLINT_FLAGS='--reporter=github-actions-logging' | tee swiftlint.log
18 # fail if there are any errors or warnings
19 ! grep -Eq '^::(error|warning)' swiftlint.log