From 3813c33d71853f5fb946eba55bfa3d10925ef425 Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Fri, 11 Jun 2021 17:28:22 +0200 Subject: [PATCH] feat: add GitHub action for SwiftLint --- .github/workflows/linter.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/linter.yaml diff --git a/.github/workflows/linter.yaml b/.github/workflows/linter.yaml new file mode 100644 index 00000000..585d357a --- /dev/null +++ b/.github/workflows/linter.yaml @@ -0,0 +1,21 @@ +name: Linter + +on: + push: + paths: + - '.github/workflows/linter.yaml' + - '.swiftlint.yml' + - '**/*.swift' + pull_request: + paths: + - '.github/workflows/linter.yaml' + - '.swiftlint.yml' + - '**/*.swift' + +jobs: + SwiftLint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: norio-nomura/action-swiftlint@3.2.1 \ No newline at end of file