Skip to content

Commit 07967bd

Browse files
committed
chore(ci): run workflow on PR only
And only on pushes to master, and have a single required completion check. Signed-off-by: JP-Ellis <josh@jpellis.me>
1 parent ac39704 commit 07967bd

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
name: Build
22

33
on:
4+
pull_request:
5+
branches:
6+
- master
47
push:
5-
workflow_dispatch:
8+
branches:
9+
- master
610

711
env:
812
PACT_BROKER_BASE_URL: https://testdemo.pactflow.io
@@ -13,6 +17,19 @@ env:
1317
PACT_URL: https://testdemo.pactflow.io/pacts/provider/pactflow-example-provider/consumer/pactflow-example-consumer-webhookless/version/${{ github.sha }}
1418

1519
jobs:
20+
complete:
21+
name: Test completion check
22+
if: always()
23+
24+
permissions:
25+
contents: none
26+
27+
runs-on: ubuntu-slim
28+
needs:
29+
- Test
30+
- Verify
31+
- Can-I-Deploy
32+
1633
Test:
1734
runs-on: ubuntu-latest
1835
steps:

0 commit comments

Comments
 (0)