Skip to content

Instantly share code, notes, and snippets.

@testableapple
Created July 29, 2020 16:47
Show Gist options
  • Select an option

  • Save testableapple/13740bdfccec193c93cc72965417920b to your computer and use it in GitHub Desktop.

Select an option

Save testableapple/13740bdfccec193c93cc72965417920b to your computer and use it in GitHub Desktop.
name: Sample
on: [pull_request]
jobs:
first_project:
name: FirstProjectTests
runs-on: [macos-latest]
steps:
- uses: actions/checkout@v2
- name: Runner
env:
PULL_REQUEST: ${{ "{{ github.event.pull_request._links.self.href " }}}}
GITHUB_TOKEN: ${{ "{{ secrets.GITHUB_TOKEN " }}}}
TRIGGER: "FirstProjectRelatedFolder/, VeryImportantFolder/, Fastfile"
IGNORE: "FirstProjectFolder/tests/, .md"
run: |
if [ $(ruby ./.github/scripts/check_changes.rb) = 0 ]; then
echo "Required files were not touched"
else
fastlane first_project_tests
fi
second_project:
name: SecondProjectTests
runs-on: [macos-latest]
steps:
- uses: actions/checkout@v2
- name: Runner
env:
PULL_REQUEST: ${{ "{{ github.event.pull_request._links.self.href " }}}}
GITHUB_TOKEN: ${{ "{{ secrets.GITHUB_TOKEN " }}}}
TRIGGER: "SecondProjectRelatedFolder/, VeryImportantFolder/, Fastfile"
IGNORE: "SecondProjectRelatedFolder/tests/, .md"
run: |
if [ $(ruby ./.github/scripts/check_changes.rb) = 0 ]; then
echo "Required files were not touched"
else
fastlane second_project_tests
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment