diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..89adc2b --- /dev/null +++ b/.github/workflows/main.yml @@ -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