-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (59 loc) · 1.65 KB
/
pull_request.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Continuous Integration
on:
pull_request:
types: [ opened, synchronize, reopened, ready_for_review ]
pull_request_target:
types: [ opened, synchronize, reopened, ready_for_review ]
concurrency:
group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pipeline:
strategy:
matrix:
module: [
"abstract-factory",
"adapter",
"bridge",
"builder",
"chain-of-responsibility",
"command",
"composite",
"decorator",
"facade",
"factory",
"factory-method",
"flyweight",
"iterator",
"mediator",
"observer",
"prototype",
"proxy",
"singleton",
"state",
"strategy",
"template-method",
"visitor",
]
uses: yonatankarp/github-actions/.github/workflows/ci.yml@v1
with:
context: ${{ matrix.module }}
build_dockerfile: false
ci-check:
if: |
github.event_name == 'pull_request_target' ||
github.event_name == 'pull_request' && github.actor == 'dependabot[bot]'
needs:
- pipeline
runs-on: ubuntu-latest
steps:
- name: Decide whether all CI jobs are succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
dependabot_auto_merge:
needs: pipeline
if: ${{ github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]' }}
uses: yonatankarp/github-actions/.github/workflows/dependabot-auto-merge.yml@v1
secrets:
GITHUB_PAT: ${{ secrets.CI_PAT }}