Skip to content

Commit df8262e

Browse files
author
david_smith
committed
Add backwards compatibility
1 parent 2c393df commit df8262e

File tree

2 files changed

+29
-17
lines changed

2 files changed

+29
-17
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: backwards_compatibility
2+
3+
on:
4+
workflow_run:
5+
workflows: ["test"]
6+
types:
7+
- completed
8+
branches:
9+
- main
10+
11+
jobs:
12+
roave-backwards-compatibility-check:
13+
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main' }}
14+
name: Roave Backwards Compatibility Check
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
- name: Set safe directory
21+
run: git config --global --add safe.directory /github/workspace
22+
- name: "Check for BC breaks"
23+
run: |
24+
git config --global --add safe.directory "${GITHUB_WORKSPACE}"
25+
26+
docker run --rm \
27+
-v "${GITHUB_WORKSPACE}":/github/workspace \
28+
-w /github/workspace \
29+
nyholm/roave-bc-check-ga

.github/workflows/test.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,6 @@ on:
77
branches: [main]
88

99
jobs:
10-
roave-backwards-compatibility-check:
11-
name: Roave Backwards Compatibility Check
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v4
15-
with:
16-
fetch-depth: 0
17-
- name: Set safe directory
18-
run: git config --global --add safe.directory /github/workspace
19-
- name: "Check for BC breaks"
20-
run: |
21-
git config --global --add safe.directory "${GITHUB_WORKSPACE}"
22-
23-
docker run --rm \
24-
-v "${GITHUB_WORKSPACE}":/github/workspace \
25-
-w /github/workspace \
26-
nyholm/roave-bc-check-ga
2710
test:
2811
runs-on: ubuntu-latest
2912

0 commit comments

Comments
 (0)