-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔀 merge updated workflows to master (#426)
- Loading branch information
Showing
10 changed files
with
187 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -127,14 +127,14 @@ jobs: | |
- job_001 | ||
- job_002 | ||
job_004: | ||
name: "unit_test; PKGS: chopper, chopper_built_value; `dart test -p chrome`" | ||
name: "unit_test; PKGS: chopper, chopper_built_value; `dart pub global run coverage:test_with_coverage`" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cache Pub hosted dependencies | ||
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 | ||
with: | ||
path: "~/.pub-cache/hosted" | ||
key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:chopper-chopper_built_value;commands:test_1" | ||
key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:chopper-chopper_built_value;commands:test_with_coverage" | ||
restore-keys: | | ||
os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:chopper-chopper_built_value | ||
os:ubuntu-latest;pub-cache-hosted;sdk:stable | ||
|
@@ -144,6 +144,8 @@ jobs: | |
uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f | ||
with: | ||
sdk: stable | ||
- name: "Activate package:coverage" | ||
run: "dart pub global activate coverage '>=1.5.0'" | ||
- id: checkout | ||
name: Checkout repository | ||
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab | ||
|
@@ -152,32 +154,44 @@ jobs: | |
run: dart pub upgrade | ||
if: "always() && steps.checkout.conclusion == 'success'" | ||
working-directory: chopper | ||
- name: "chopper; dart test -p chrome" | ||
run: dart test -p chrome | ||
- name: "chopper; dart pub global run coverage:test_with_coverage" | ||
run: "dart pub global run coverage:test_with_coverage" | ||
if: "always() && steps.chopper_pub_upgrade.conclusion == 'success'" | ||
working-directory: chopper | ||
- name: Upload coverage to codecov.io | ||
uses: codecov/codecov-action@main | ||
with: | ||
files: chopper/coverage/lcov.info | ||
fail_ci_if_error: true | ||
name: coverage_00 | ||
- id: chopper_built_value_pub_upgrade | ||
name: chopper_built_value; dart pub upgrade | ||
run: dart pub upgrade | ||
if: "always() && steps.checkout.conclusion == 'success'" | ||
working-directory: chopper_built_value | ||
- name: "chopper_built_value; dart test -p chrome" | ||
run: dart test -p chrome | ||
- name: "chopper_built_value; dart pub global run coverage:test_with_coverage" | ||
run: "dart pub global run coverage:test_with_coverage" | ||
if: "always() && steps.chopper_built_value_pub_upgrade.conclusion == 'success'" | ||
working-directory: chopper_built_value | ||
- name: Upload coverage to codecov.io | ||
uses: codecov/codecov-action@main | ||
with: | ||
files: chopper_built_value/coverage/lcov.info | ||
fail_ci_if_error: true | ||
name: coverage_01 | ||
needs: | ||
- job_001 | ||
- job_002 | ||
- job_003 | ||
job_005: | ||
name: "unit_test; PKGS: chopper, chopper_built_value; `dart test`" | ||
name: "unit_test; PKGS: chopper, chopper_built_value; `dart test -p chrome`" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cache Pub hosted dependencies | ||
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 | ||
with: | ||
path: "~/.pub-cache/hosted" | ||
key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:chopper-chopper_built_value;commands:test_0" | ||
key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:chopper-chopper_built_value;commands:test" | ||
restore-keys: | | ||
os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:chopper-chopper_built_value | ||
os:ubuntu-latest;pub-cache-hosted;sdk:stable | ||
|
@@ -195,41 +209,20 @@ jobs: | |
run: dart pub upgrade | ||
if: "always() && steps.checkout.conclusion == 'success'" | ||
working-directory: chopper | ||
- name: chopper; dart test | ||
run: dart test | ||
- name: "chopper; dart test -p chrome" | ||
run: dart test -p chrome | ||
if: "always() && steps.chopper_pub_upgrade.conclusion == 'success'" | ||
working-directory: chopper | ||
- id: chopper_built_value_pub_upgrade | ||
name: chopper_built_value; dart pub upgrade | ||
run: dart pub upgrade | ||
if: "always() && steps.checkout.conclusion == 'success'" | ||
working-directory: chopper_built_value | ||
- name: chopper_built_value; dart test | ||
run: dart test | ||
- name: "chopper_built_value; dart test -p chrome" | ||
run: dart test -p chrome | ||
if: "always() && steps.chopper_built_value_pub_upgrade.conclusion == 'success'" | ||
working-directory: chopper_built_value | ||
needs: | ||
- job_001 | ||
- job_002 | ||
- job_003 | ||
job_006: | ||
name: Coverage | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dart-lang/[email protected] | ||
with: | ||
sdk: stable | ||
- id: checkout | ||
uses: actions/checkout@v3 | ||
- id: upload_coverage | ||
name: chopper; tool/coverage.sh | ||
run: bash tool/coverage.sh | ||
if: "always() && steps.checkout.conclusion == 'success'" | ||
env: | ||
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}" | ||
needs: | ||
- job_001 | ||
- job_002 | ||
- job_003 | ||
- job_004 | ||
- job_005 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,28 +4,16 @@ github: | |
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
- master | ||
- develop | ||
pull_request: | ||
branches: | ||
- master | ||
- develop | ||
on_completion: | ||
- name: "Coverage" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dart-lang/[email protected] | ||
with: | ||
sdk: stable | ||
- id: checkout | ||
uses: actions/checkout@v3 | ||
- id: upload_coverage | ||
name: "chopper; tool/coverage.sh" | ||
if: "always() && steps.checkout.conclusion == 'success'" | ||
run: bash tool/coverage.sh | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
- master | ||
- develop | ||
|
||
merge_stages: | ||
- analyzer_and_format | ||
- unit_test | ||
- analyzer_and_format | ||
- unit_test | ||
|
||
coverage_service: | ||
- codecov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.