Skip to content

Commit 34f863f

Browse files
authored
[ci] Update CI workflow to include main/master branch and check label 'pr: run ci' in PR (#22)
* [ci] Update CI workflow to include main/master branch and check label 'pr: run ci' in PR * Enhance CI workflow with pull request triggers Add pull request trigger types to CI workflow
1 parent e23f8b5 commit 34f863f

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,24 @@ name: CI
22

33
on:
44
push:
5+
branches:
6+
- main
7+
- master
8+
9+
pull_request:
10+
types: [opened, synchronize, reopened, labeled]
511

612
jobs:
713
build-and-test:
814
name: Run on ${{ matrix.os }} with SOFA ${{ matrix.sofa_branch }}
15+
if: >
16+
github.event_name == 'push' ||
17+
contains(github.event.pull_request.labels.*.name, 'pr: run ci')
918
runs-on: ${{ matrix.os }}
1019
strategy:
1120
fail-fast: false
1221
matrix:
13-
os: [ubuntu-22.04, windows-2022] #macos-14,
22+
os: [ubuntu-22.04, macos-14, windows-2022]
1423
sofa_branch: [master]
1524

1625
steps:

0 commit comments

Comments
 (0)