Skip to content

Commit

Permalink
Fully detach build jobs from 'edited' trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
jnewc committed Apr 22, 2024
1 parent a5850c4 commit 6d93a4f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/build_test_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,14 @@ on:
pull_request:
types:
- opened
- edited
- synchronize

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
danger:
runs-on: ubuntu-latest
name: "Run Danger"
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Danger
uses: docker://ghcr.io/danger/danger-swift-with-swiftlint@sha256:ed07386a85f1328619b49e3cfd737ffce351fcd2620d858cfc997d7e3e401b59 #v3.15.0
with:
args: --failOnErrors --no-publish-check --remove-previous-comments
env:
GITHUB_TOKEN: ${{ github.token }}
unit-test:
debug-app-unit-tests:
runs-on: macos-13-large
timeout-minutes: 30
name: "Debug App - Unit Tests"
Expand Down Expand Up @@ -61,7 +49,7 @@ jobs:
MATCH_KEYCHAIN_NAME: ${{ secrets.MATCH_KEYCHAIN_NAME }}
MATCH_KEYCHAIN_PASSWORD: ${{ secrets.MATCH_KEYCHAIN_PASSWORD }}
SOURCE_BRANCH: ${{ github.head_ref }}
spm-test:
sdk-unit-tests:
runs-on: macos-13-large
timeout-minutes: 20
name: "SDK - Unit Tests"
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/danger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Danger

on:
pull_request:
types:
- opened
- edited
- synchronize

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
danger:
runs-on: ubuntu-latest
name: "Run Danger"
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Danger
uses: docker://ghcr.io/danger/danger-swift-with-swiftlint@sha256:ed07386a85f1328619b49e3cfd737ffce351fcd2620d858cfc997d7e3e401b59 #v3.15.0
with:
args: --failOnErrors --no-publish-check --remove-previous-comments
env:
GITHUB_TOKEN: ${{ github.token }}

0 comments on commit 6d93a4f

Please sign in to comment.