Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ffalswo2 authored Dec 7, 2023
1 parent fdce511 commit 45171f9
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: SwiftLint

on:
push:
branches: [ main ]
paths:
- '.github/workflows/swiftlint.yml'
- 'SOPT-32st-Assignment/.swiftlint.yml'
- 'SOPT-32st-Assignment/**/*.swift'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/swiftlint.yml'
- 'SOPT-32st-Assignment/.swiftlint.yml'
- 'SOPT-32st-Assignment/**/*.swift'

jobs:
SwiftLint:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1

- name: Run Swiftlint
- run: swiftlint --config SOPT-32st-Assignment/.swiftlint.yml --strict

0 comments on commit 45171f9

Please sign in to comment.