Skip to content

Commit 3393aa4

Browse files
Preserve old check names for branch protection compatibility
Use matrix include to map os strings to runner configs instead of restructuring the matrix with object values. This keeps the auto- generated check names (e.g. unit-tests (ubuntu-latest, 8)) matching what branch protection rules expect.
1 parent f7adf0c commit 3393aa4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/push.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,17 @@ jobs:
4444
strategy:
4545
fail-fast: false
4646
matrix:
47-
os:
48-
- name: linux
47+
os: [macos-latest, ubuntu-latest]
48+
java-version: [8, 11, 17, 20] # 20 is the latest version as of 2023 and 17 is the latest LTS
49+
include:
50+
- os: ubuntu-latest
4951
runner:
5052
group: databricks-protected-runner-group
5153
labels: linux-ubuntu-latest
52-
- name: macos
54+
- os: macos-latest
5355
runner: macos-latest
54-
java-version: [8, 11, 17, 20] # 20 is the latest version as of 2023 and 17 is the latest LTS
5556

56-
name: "unit-tests (${{ matrix.os.name }}, java ${{ matrix.java-version }})"
57-
runs-on: ${{ matrix.os.runner }}
57+
runs-on: ${{ matrix.runner }}
5858

5959
steps:
6060
- name: Checkout

0 commit comments

Comments
 (0)