Skip to content

Commit

Permalink
fixup! "Qual: Add dependencies between workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeweerd committed Mar 21, 2024
1 parent 4a4b2f0 commit 9f0363f
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 19 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "CI"

on: [push, pull_request]
jobs:
pre-commit:
uses: .github/workflows/pre-commit.yml
secrets: inherit
phan:
uses: .github/workflows/phan.yml
secrets: inherit
phpstan:
uses: .github/workflows/phpstan.yml
secrets: inherit
needs: [pre-commit, phan]
windows-ci:
needs: [pre-commit, phan]
secrets: inherit
uses: .github/workflows/windows-ci.yml
travis:
needs: [windows-ci]
secrets: inherit
uses: .github/workflows/travis.yml
11 changes: 6 additions & 5 deletions .github/workflows/phan.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
---
on:
pull_request:
push:
schedule:
# execute once a day, the 1st
- cron: 10 9 * * *
# pull_request:
# push:
# schedule:
# # execute once a day, the 1st
# - cron: 10 9 * * *
workflow_call:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ name: PHPStan
on:
# push:
# pull_request:
workflow_run:
# workflows: [pre-commit, phan]
workflows: [pre-commit]
types: [completed]
workflow_call:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref
}}
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
---
name: pre-commit
on:
pull_request:
push:
# pull_request:
# push:
workflow_call:
workflow_dispatch:

jobs:
pre-commit:
runs-on: ubuntu-latest
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ name: Travis
on:
# push:
# pull_request:
workflow_run:
workflows: [pre-commit, phan, windows-ci]
types: [completed]
workflow_call:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref
}}
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/windows-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@ name: Win CI
on:
# push:
# pull_request:
workflow_dispatch: # For manual start
workflow_run:
#workflows: [pre-commit, phan]
workflows: ["Win CI"]
types: [completed]
workflow_call:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref
Expand Down

0 comments on commit 9f0363f

Please sign in to comment.