Skip to content

Commit 35fdbc5

Browse files
committed
ci: target the main branch instead of mainline
The workflows referenced a mainline branch that does not exist in this repository; the default branch is main. Basic CI and CodeQL are gated on `branches: [ mainline ]`, so they never triggered for pull requests targeting main. The coverage check runs on all branches, but failed at `git checkout origin/mainline` before it could measure anything. Signed-off-by: Ben Copeland <ben.copeland@linaro.org>
1 parent 0f9c0d2 commit 35fdbc5

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/basic-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Basic CI
22

33
on:
44
push:
5-
branches: [ mainline ]
5+
branches: [ main ]
66
pull_request:
7-
branches: [ mainline ]
7+
branches: [ main ]
88

99
permissions:
1010
contents: read

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: "CodeQL"
22

33
on:
44
push:
5-
branches: [ mainline ]
5+
branches: [ main ]
66
pull_request:
7-
branches: [ mainline ]
7+
branches: [ main ]
88

99
jobs:
1010
analyze:

.github/workflows/coverage-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
3030
- name: Get base branch coverage
3131
run: |
32-
git checkout origin/mainline
32+
git checkout origin/main
3333
pip install -e ".[dev]"
3434
python -m pytest tests/ -m "not integration" --cov=src --cov-report=json:coverage-base.json --tb=no -q || true
3535
BASE_COVERAGE=$(python -c "import json; print(json.load(open('coverage-base.json'))['totals']['percent_covered'])")

0 commit comments

Comments
 (0)