Skip to content

Commit 425f648

Browse files
Merge pull request #1200 from zino-hofmann/ref-gh-actions
feat: Refactor GH actions
2 parents a02d656 + 315d85c commit 425f648

File tree

15 files changed

+45
-147
lines changed

15 files changed

+45
-147
lines changed
Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: graphql Dart Code sanity check
1+
name: Build
22

33
on:
44
push:
@@ -8,13 +8,21 @@ on:
88

99
jobs:
1010
build:
11+
strategy:
12+
matrix:
13+
channel:
14+
- beta
15+
- stable
16+
- dev
1117
runs-on: ubuntu-latest
1218
steps:
1319
- uses: actions/checkout@v2
1420
- uses: subosito/flutter-action@v1
1521
with:
16-
channel: 'stable'
22+
channel: ${{matrix.channel}}
1723
- name: Install dependencies
1824
run: make dep
1925
- name: Code formatting check
20-
run: make ci_fmt_client
26+
run: make ci_fmt_client
27+
- name: Code formatting check (flutter)
28+
run: make ci_fmt_flutter

.github/workflows/graphql_codcoverage.yml renamed to .github/workflows/codcoverage.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: graphql Code coverage
1+
name: Codecoverage
22

33
on:
44
push:
@@ -18,9 +18,9 @@ jobs:
1818
- name: Run tests with coverage
1919
run: |
2020
make dep
21-
make ci_coverage_client
22-
- name: Upload coverage file
23-
run: |
2421
curl -Os https://uploader.codecov.io/latest/linux/codecov
2522
chmod +x codecov
23+
make ci_coverage_client
24+
./codecov
25+
make ci_coverage_flutter
2626
./codecov

.github/workflows/graphql_flutter_build.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/graphql_flutter_codcoverage.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/graphql_tests.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/workflows/packages_build.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/packages_tests.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/workflows/graphql_release.yml renamed to .github/workflows/release_dart.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: graphql Release Package
1+
name: Release (dart)
22

33
on:
44
release:
@@ -8,8 +8,8 @@ on:
88
push:
99
workflow_run:
1010
workflows:
11-
- "graphql Test case"
12-
- "graphql Dart Code sanity check"
11+
- "Test"
12+
- "Build"
1313
branches: [ main ]
1414
types:
1515
- completed

.github/workflows/graphql_flutter_release.yml renamed to .github/workflows/release_flutter.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: graphql-flutter Release Package
1+
name: Release (flutter)
22

33
on:
44
release:
@@ -8,9 +8,8 @@ on:
88
push:
99
workflow_run:
1010
workflows:
11-
- "graphql-flutter Dart Code sanity check"
12-
- "graphql-flutter Tests case"
13-
- "graphql Release Package"
11+
- "Build"
12+
- "Test"
1413
branches: [ main ]
1514
types:
1615
- completed

.github/workflows/packages_release.yml renamed to .github/workflows/release_packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: publish packages to pub.dev
1+
name: Release (packages)
22

33
on:
44
release:

0 commit comments

Comments
 (0)