From 45171f90c5c0b9740facbba81fa26c1a78f91c3c Mon Sep 17 00:00:00 2001 From: Minjae Kim Date: Thu, 7 Dec 2023 14:05:41 +0900 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/main.yml 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