[PLAT-11363] Use new idempotent API for mazerunner command fetch #597
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: "Pull Request" | |
on: [pull_request] | |
jobs: | |
danger: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout target branch | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.base_ref }} | |
- name: Build | |
run: xcodebuild -scheme BugsnagPerformance-iOS -destination generic/platform=iOS -configuration Release -quiet -derivedDataPath $PWD/DerivedData.old VALID_ARCHS=arm64 | |
- name: Checkout pull request merge branch | |
uses: actions/checkout@v2 | |
with: | |
clean: false | |
fetch-depth: 100 | |
- name: Build | |
run: xcodebuild -scheme BugsnagPerformance-iOS -destination generic/platform=iOS -configuration Release -quiet -derivedDataPath $PWD/DerivedData.new VALID_ARCHS=arm64 | |
- name: Install dependencies | |
run: brew install bloaty && gem install danger | |
- name: Run danger | |
run: danger | |
env: | |
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} |