Skip to content

Commit 9936459

Browse files
committed
add swiftlint workflow
1 parent 6592df5 commit 9936459

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Build
22
on:
33
workflow_dispatch:
44
workflow_call:
5+
push:
6+
branches:
7+
- main
58
pull_request:
69
branches:
710
- main
@@ -15,4 +18,4 @@ jobs:
1518
uses: actions/checkout@v2
1619

1720
- name: Building
18-
run: swift build -c release --arch arm64 --arch x86_64
21+
run: swift build -c release --arch arm64 --arch x86_64

.github/workflows/swiftlint.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: SwiftLint
2+
on:
3+
workflow_call:
4+
push:
5+
branches:
6+
- 'main'
7+
pull_request:
8+
branches:
9+
- 'main'
10+
jobs:
11+
SwiftLint:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: GitHub Action for SwiftLint with --strict
16+
uses: norio-nomura/[email protected]
17+
with:
18+
args: --strict

0 commit comments

Comments
 (0)