Update Android Gradle Plugin #251
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: "CI" | |
on: | |
push | |
concurrency: | |
# See https://github.com/TWiStErRob/github-workflows/blob/main/snippets/cancel-pr-ci-on-push.yml | |
group: ${{ github.ref == 'refs/heads/main' && format('ci-main-{0}', github.sha) || format('ci-{0}', github.ref) }} | |
cancel-in-progress: true | |
jobs: | |
validate: | |
name: "🦺 Validation" | |
uses: TWiStErRob/github-workflows/.github/workflows/validate.yml@1e06403c5d561d70e40109c2701ea3092ca6ded7 # v3 | |
permissions: | |
contents: read | |
security-events: write | |
actions: read | |
build: | |
name: "🔨 Build & Verify" | |
uses: ./.github/workflows/ci-build.yml | |
needs: | |
- validate | |
permissions: | |
contents: read | |
statuses: write | |
checks: write | |
security-events: write | |
actions: read | |
prepare: | |
name: "Prepare" | |
uses: ./.github/workflows/ci-pr.yml | |
# Don't execute on main, it'll never be PR'd. | |
if: ${{ github.ref != 'refs/heads/main' && (success() || failure()) }} | |
permissions: {} | |
screenshot: | |
name: "📷 Screenshot Tests" | |
uses: ./.github/workflows/ci-screenshot.yml | |
with: | |
base_ref: ${{ needs.prepare.outputs.base_ref }} | |
head_ref: ${{ needs.prepare.outputs.head_ref }} | |
needs: | |
- validate | |
- prepare | |
# Don't execute on main, as it'll just verify against itself. | |
if: ${{ github.ref != 'refs/heads/main' && needs.prepare.outputs.found == 'true' }} | |
permissions: | |
contents: read | |
statuses: write | |
checks: write |