added workflows to run lint and tests #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Code Quality Check / Perform static analysis | |
on: | |
pull_request: | |
paths: | |
- '.github/workflows/lint.yml' | |
- '.swiftlint.yml' | |
- '**/*.swift' | |
concurrency: | |
# New commit on branch cancels running workflows of the same branch | |
group: ${{ github.workflow }}-${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
SwiftLint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: GitHub Action for SwiftLint | |
uses: norio-nomura/[email protected] | |
- name: GitHub Action for SwiftLint with --strict | |
uses: norio-nomura/[email protected] | |
with: | |
args: --strict | |
- name: GitHub Action for SwiftLint (Only files changed in the PR) | |
uses: norio-nomura/[email protected] | |
env: | |
DIFF_BASE: ${{ github.base_ref }} | |
- name: GitHub Action for SwiftLint (Different working directory) | |
uses: norio-nomura/[email protected] | |
env: | |
WORKING_DIRECTORY: Source |