Skip to content

Commit 822a903

Browse files
fix(ci): fix publishing and codecov workflow failures
- Remove bare `push:` trigger from release workflows that caused them to run on every push to every branch (they still run via workflow_run on main and on release events) - Add `force: true` to flutter publisher to avoid dependency resolution failures during dry runs - Replace deprecated codecov uploader script with codecov/codecov-action@v4 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d6b230b commit 822a903

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

.github/workflows/codcoverage.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,19 @@ jobs:
1515
- uses: subosito/flutter-action@v2
1616
with:
1717
channel: 'stable'
18-
- name: Run tests with coverage
19-
run: |
20-
make dep
21-
curl -Os https://uploader.codecov.io/latest/linux/codecov
22-
chmod +x codecov
23-
make ci_coverage_client
24-
./codecov
25-
make ci_coverage_flutter
26-
./codecov
18+
- name: Install dependencies
19+
run: make dep
20+
- name: Run coverage (dart)
21+
run: make ci_coverage_client
22+
- name: Upload coverage (dart)
23+
uses: codecov/codecov-action@v4
24+
with:
25+
token: ${{ secrets.CODECOV_TOKEN }}
26+
flags: graphql
27+
- name: Run coverage (flutter)
28+
run: make ci_coverage_flutter
29+
- name: Upload coverage (flutter)
30+
uses: codecov/codecov-action@v4
31+
with:
32+
token: ${{ secrets.CODECOV_TOKEN }}
33+
flags: graphql_flutter

.github/workflows/release_dart.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
types: [created]
66
tags:
77
- graphql-v*
8-
push:
98
workflow_run:
109
workflows:
1110
- "Test"

.github/workflows/release_flutter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
types: [created]
66
tags:
77
- graphql_flutter-v*
8-
push:
98
workflow_run:
109
workflows:
1110
- "Build"
@@ -27,5 +26,6 @@ jobs:
2726
credentialJson: ${{ secrets.CREDENTIAL_JSON }}
2827
flutter: true
2928
skipTests: true
29+
force: true
3030
dryRunOnly: ${{ github.event_name != 'release' }}
3131
relativePath: './packages/graphql_flutter/'

0 commit comments

Comments
 (0)