-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (37 loc) · 1.15 KB
/
build-and-lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: "Lint"
run-name: Linting
on:
push: # pull_request
paths:
- '.github/workflows/swiftlint.yml'
- '.swiftlint.yml'
- '**/*.swift'
jobs:
SwiftLint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: GitHub Action for SwiftLint
uses: norio-nomura/action-swiftlint@master
# lint:
# runs-on: macos-14
# steps:
# - name: Print job info
# run: |
# echo "The job was triggered by a ${{ github.event_name }} event and is now running on a ${{ runner.os }} server."
# echo "The repository is ${{ github.repository }} and the branch is ${{ github.ref }}."
# echo "Available XCode versions:"
# sudo ls -1 /Applications | grep "Xcode"
# echo "Selected XCode version:"
# /usr/bin/xcodebuild -version
# - name: Check out repository code
# uses: actions/checkout@v4
# - name: Install SwiftLint
# run: |
# bundle install
# cd Example
# bundle exec pod install
# - name: Run SwitLint
# run: |
# cd Example
# ./Pods/SwiftLint/swiftlint