8000 ci: run CI on maintenance branches and keep semver blocking there (#937) by adityamukho · Pull Request #968 · project-minigraf/minigraf · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/binary-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Binary Size

on:
push:
branches: [ "main" ]
branches: [ "main", "v[0-9]*" ]
pull_request:
branches: [ "main" ]
branches: [ "main", "v[0-9]*" ]

permissions:
contents: read
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ name: Lint

on:
push:
branches: [ "main" ]
branches: [ "main", "v[0-9]*" ]
pull_request:
branches: [ "main" ]
branches: [ "main", "v[0-9]*" ]

permissions:
contents: read
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/policy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ name: Policy

on:
push:
branches: [ "main" ]
branches: [ "main", "v[0-9]*" ]
pull_request:
# Major-version branches (e.g. `v3`) run the same checks, but a semver
# break is allowed there — see the semver-checks job.
# Other branches run the same checks. A semver break is allowed only on a
# major-version development branch (e.g. `v3`), never on a maintenance
# branch (`v2.x`) — see the semver-checks job.
branches: [ "main", "v[0-9]*" ]
# A new advisory can land without a change here (default branch only).
schedule:
Expand Down Expand Up @@ -61,10 +62,12 @@ jobs:
name: Public API semver check
if: github.event_name != 'schedule'
runs-on: ubuntu-latest
# A breaking change is only allowed on a major-version branch (e.g. `v3`).
# There the job still runs, so the break is visible, but it cannot fail
# the PR. On `main` it is a hard gate.
continue-on-error: ${{ github.event_name == 'pull_request' && github.base_ref != 'main' }}
# A breaking change is only allowed on a major-version development branch
# (e.g. `v3`). There the job still runs, so the break is visible, but it
# cannot fail the PR. On `main` and on a maintenance branch (`v2.x`, #937)
# it is a hard gate; the baseline is the latest tag reachable from the
# checkout, so on `v2.x` it is the latest 2.x release.
continue-on-error: ${{ github.event_name == 'pull_request' && github.base_ref != 'main' && !endsWith(github.base_ref, '.x') }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Rust

on:
push:
branches: [ "main" ]
branches: [ "main", "v[0-9]*" ]
pull_request:
branches: [ "main" ]
branches: [ "main", "v[0-9]*" ]

env:
CARGO_TERM_COLOR: always
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: WASM

on:
push:
branches: [ "main" ]
branches: [ "main", "v[0-9]*" ]
pull_request:
branches: [ "main" ]
branches: [ "main", "v[0-9]*" ]

env:
CARGO_TERM_COLOR: always
Expand Down
Loading
0