From 8417b0589a643ca018cfcf66fa3b247511dd3002 Mon Sep 17 00:00:00 2001 From: Jesse Squires Date: Tue, 25 Jun 2024 12:55:52 -0700 Subject: [PATCH] Add SwiftLint workflow --- .github/workflows/swiftlint.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/swiftlint.yml diff --git a/.github/workflows/swiftlint.yml b/.github/workflows/swiftlint.yml new file mode 100644 index 0000000..8b6db58 --- /dev/null +++ b/.github/workflows/swiftlint.yml @@ -0,0 +1,26 @@ +# GitHub Actions Virtual Environments +# https://github.com/actions/virtual-environments/ +name: SwiftLint + +on: + pull_request: + paths: + - '.github/workflows/swiftlint.yml' + - '.swiftlint.yml' + - '**/*.swift' + +env: + DEVELOPER_DIR: /Applications/Xcode_15.4.app/Contents/Developer + +jobs: + SwiftLint: + runs-on: macos-14 + steps: + - name: git checkout + uses: actions/checkout@v4 + + # https://github.com/norio-nomura/action-swiftlint + - name: Run SwiftLint + uses: norio-nomura/action-swiftlint@3.2.1 + with: + args: --strict