Skip to content

Commit

Permalink
chore(ci): reduce ci usage
Browse files Browse the repository at this point in the history
Specifically avoid duplicating the number of CI runs by being more
specific about when to run CI on PRs and pushes

Signed-off-by: JP-Ellis <[email protected]>
  • Loading branch information
JP-Ellis committed Dec 12, 2024
1 parent f8bd4d5 commit d0749a8
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 10 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
name: Pact Plugin Examples

on:
- push
- pull_request
push:
branches:
- main
pull_request:
branches:
- main

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

jobs:
csv-examples:
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
name: Pact Plugin Driver (Gradle)

on:
- push
- pull_request
push:
branches:
- main
pull_request:
branches:
- main

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

jobs:
latest_jdk:
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/plugin-cli.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
name: Pact Plugin CLI

on: [push, pull_request]
on:
push:
branches:
- main
pull_request:
branches:
- main

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

jobs:
build:
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@ name: Release workflow

on:
release:
types: [published]

types:
- published
push:
branches:
- main
pull_request:
branches:
- main

concurrency:
group: release-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true

jobs:
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
name: Pact Plugin Driver (Rust)

on: [push, pull_request]
on:
release:
types:
- published
push:
branches:
- main
pull_request:
branches:
- main

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

jobs:
build:
Expand Down

0 comments on commit d0749a8

Please sign in to comment.