Skip to content

Instantly share code, notes, and snippets.

@huynguyencong
Created January 13, 2021 10:33
Show Gist options
  • Save huynguyencong/787245c0a5b362c2e056964d5b823dc4 to your computer and use it in GitHub Desktop.
Save huynguyencong/787245c0a5b362c2e056964d5b823dc4 to your computer and use it in GitHub Desktop.
Github action: On pull request to master, develop, release branch, run Test and Swiftlint
name: On pull request
on:
pull_request:
branches:
- master
- develop
jobs:
test:
name: Testing
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Test
run: fastlane test
swiftlint:
name: Swiftlint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: SwiftLint (Only files changed in the PR)
uses: norio-nomura/[email protected]
env:
DIFF_BASE: ${{ github.base_ref }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment