Skip to content

Commit

Permalink
Try splitting workflow into two files
Browse files Browse the repository at this point in the history
  • Loading branch information
THISISDINOSAUR committed Nov 4, 2024
1 parent 068c5e8 commit 1475b6e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/pir_end_to_end_tests.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: PIR E2E Tests

on:
workflow_dispatch:
schedule:
- cron: '0 3 * * 1-5' # 3AM UTC offsetted to legacy to avoid action-junit-report@v4 bug
pull_request:
workflow_call:

jobs:
pir-e2e-tests:
Expand All @@ -18,16 +15,6 @@ jobs:
- xcode-version: "15.4"
runner: macos-14-xlarge

if: |
startsWith(github.event.pull_request.base.ref, 'release/') ||
startsWith(github.event.pull_request.base.ref, 'hotfix/') ||
contains(toJson(github.event.pull_request.files.*.filename), 'DBPE2ETests/') ||
contains(toJson(github.event.pull_request.files.*.filename), 'LocalPackages/DataBrokerProtection/') ||
contains(toJson(github.event.pull_request.files.*.filename), 'LocalPackages/DataBrokerProtection/') ||
contains(toJson(github.event.pull_request.files.*.filename), 'DuckDuckGoDBPBackgroundAgent/') ||
contains(toJson(github.event.pull_request.files.*.filename), 'DuckDuckGo.xcodeproj/project.pbxproj') ||
github.event_name == 'schedule'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.runner }}
cancel-in-progress: true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: PIR E2E Tests Scheduled and release branches trigger

workflow_dispatch:
schedule:
- cron: '0 3 * * 1-5' # 3AM UTC offsetted to legacy to avoid action-junit-report@v4 bug
pull_request:

jobs:
call-sub-workflow:
uses: ./.github/workflows/pir_end_end_tests.yml

0 comments on commit 1475b6e

Please sign in to comment.