mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: add GitHub action for SwiftLint
This commit is contained in:
21
.github/workflows/linter.yaml
vendored
Normal file
21
.github/workflows/linter.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Linter
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- '.github/workflows/linter.yaml'
|
||||
- '.swiftlint.yml'
|
||||
- '**/*.swift'
|
||||
pull_request:
|
||||
paths:
|
||||
- '.github/workflows/linter.yaml'
|
||||
- '.swiftlint.yml'
|
||||
- '**/*.swift'
|
||||
|
||||
jobs:
|
||||
SwiftLint:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: norio-nomura/action-swiftlint@3.2.1
|
||||
Reference in New Issue
Block a user