-
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.
* github acions with mono_repo * fail test * cleanup * badge * regenerate * regenerate * format * fix analyzer * fix analyzer * fix test * regenerate * cleanup badge * Naming fix * remove dev chanel * ignore vscode * revert readme change * remove travis * format * fix * fix * format * fix tests Co-authored-by: Ivan Terekhin <[email protected]>
- Loading branch information
Showing
21 changed files
with
380 additions
and
176 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 |
---|---|---|
@@ -0,0 +1,160 @@ | ||
# Created with package:mono_repo v3.4.7 | ||
name: Dart CI | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
- github-action | ||
pull_request: | ||
branches: | ||
- master | ||
- develop | ||
defaults: | ||
run: | ||
shell: bash | ||
env: | ||
PUB_ENVIRONMENT: bot.github | ||
|
||
jobs: | ||
job_001: | ||
name: mono_repo self validate | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cache Pub hosted dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: "~/.pub-cache/hosted" | ||
key: "os:ubuntu-latest;pub-cache-hosted;dart:stable" | ||
restore-keys: | | ||
os:ubuntu-latest;pub-cache-hosted | ||
os:ubuntu-latest | ||
- uses: dart-lang/[email protected] | ||
with: | ||
sdk: stable | ||
- id: checkout | ||
uses: actions/checkout@v2 | ||
- name: mono_repo self validate | ||
run: pub global activate mono_repo 3.4.7 | ||
- name: mono_repo self validate | ||
run: pub global run mono_repo generate --validate | ||
job_002: | ||
name: "analyzer_and_format; PKGS: chopper, chopper_built_value, chopper_generator; `dartfmt -n --set-exit-if-changed .`, `dartanalyzer --fatal-infos .`" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cache Pub hosted dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: "~/.pub-cache/hosted" | ||
key: "os:ubuntu-latest;pub-cache-hosted;dart:stable;packages:chopper-chopper_built_value-chopper_generator;commands:dartfmt-dartanalyzer" | ||
restore-keys: | | ||
os:ubuntu-latest;pub-cache-hosted;dart:stable;packages:chopper-chopper_built_value-chopper_generator | ||
os:ubuntu-latest;pub-cache-hosted;dart:stable | ||
os:ubuntu-latest;pub-cache-hosted | ||
os:ubuntu-latest | ||
- uses: dart-lang/[email protected] | ||
with: | ||
sdk: stable | ||
- id: checkout | ||
uses: actions/checkout@v2 | ||
- id: chopper_pub_upgrade | ||
name: "chopper; pub upgrade --no-precompile" | ||
if: "always() && steps.checkout.conclusion == 'success'" | ||
working-directory: chopper | ||
run: pub upgrade --no-precompile | ||
- name: "chopper; dartfmt -n --set-exit-if-changed ." | ||
if: "always() && steps.chopper_pub_upgrade.conclusion == 'success'" | ||
working-directory: chopper | ||
run: dartfmt -n --set-exit-if-changed . | ||
- name: "chopper; dartanalyzer --fatal-infos ." | ||
if: "always() && steps.chopper_pub_upgrade.conclusion == 'success'" | ||
working-directory: chopper | ||
run: dartanalyzer --fatal-infos . | ||
- id: chopper_built_value_pub_upgrade | ||
name: "chopper_built_value; pub upgrade --no-precompile" | ||
if: "always() && steps.checkout.conclusion == 'success'" | ||
working-directory: chopper_built_value | ||
run: pub upgrade --no-precompile | ||
- name: "chopper_built_value; dartfmt -n --set-exit-if-changed ." | ||
if: "always() && steps.chopper_built_value_pub_upgrade.conclusion == 'success'" | ||
working-directory: chopper_built_value | ||
run: dartfmt -n --set-exit-if-changed . | ||
- name: "chopper_built_value; dartanalyzer --fatal-infos ." | ||
if: "always() && steps.chopper_built_value_pub_upgrade.conclusion == 'success'" | ||
working-directory: chopper_built_value | ||
run: dartanalyzer --fatal-infos . | ||
- id: chopper_generator_pub_upgrade | ||
name: "chopper_generator; pub upgrade --no-precompile" | ||
if: "always() && steps.checkout.conclusion == 'success'" | ||
working-directory: chopper_generator | ||
run: pub upgrade --no-precompile | ||
- name: "chopper_generator; dartfmt -n --set-exit-if-changed ." | ||
if: "always() && steps.chopper_generator_pub_upgrade.conclusion == 'success'" | ||
working-directory: chopper_generator | ||
run: dartfmt -n --set-exit-if-changed . | ||
- name: "chopper_generator; dartanalyzer --fatal-infos ." | ||
if: "always() && steps.chopper_generator_pub_upgrade.conclusion == 'success'" | ||
working-directory: chopper_generator | ||
run: dartanalyzer --fatal-infos . | ||
job_003: | ||
name: "unit_test; PKG: chopper; `pub run test`" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cache Pub hosted dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: "~/.pub-cache/hosted" | ||
key: "os:ubuntu-latest;pub-cache-hosted;dart:stable;packages:chopper;commands:test_0" | ||
restore-keys: | | ||
os:ubuntu-latest;pub-cache-hosted;dart:stable;packages:chopper | ||
os:ubuntu-latest;pub-cache-hosted;dart:stable | ||
os:ubuntu-latest;pub-cache-hosted | ||
os:ubuntu-latest | ||
- uses: dart-lang/[email protected] | ||
with: | ||
sdk: stable | ||
- id: checkout | ||
uses: actions/checkout@v2 | ||
- id: chopper_pub_upgrade | ||
name: "chopper; pub upgrade --no-precompile" | ||
if: "always() && steps.checkout.conclusion == 'success'" | ||
working-directory: chopper | ||
run: pub upgrade --no-precompile | ||
- name: chopper; pub run test | ||
if: "always() && steps.chopper_pub_upgrade.conclusion == 'success'" | ||
working-directory: chopper | ||
run: pub run test | ||
needs: | ||
- job_001 | ||
- job_002 | ||
job_004: | ||
name: "unit_test; PKG: chopper; `pub run test -p chrome`" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cache Pub hosted dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: "~/.pub-cache/hosted" | ||
key: "os:ubuntu-latest;pub-cache-hosted;dart:stable;packages:chopper;commands:test_1" | ||
restore-keys: | | ||
os:ubuntu-latest;pub-cache-hosted;dart:stable;packages:chopper | ||
os:ubuntu-latest;pub-cache-hosted;dart:stable | ||
os:ubuntu-latest;pub-cache-hosted | ||
os:ubuntu-latest | ||
- uses: dart-lang/[email protected] | ||
with: | ||
sdk: stable | ||
- id: checkout | ||
uses: actions/checkout@v2 | ||
- id: chopper_pub_upgrade | ||
name: "chopper; pub upgrade --no-precompile" | ||
if: "always() && steps.checkout.conclusion == 'success'" | ||
working-directory: chopper | ||
run: pub upgrade --no-precompile | ||
- name: "chopper; pub run test -p chrome" | ||
if: "always() && steps.chopper_pub_upgrade.conclusion == 'success'" | ||
working-directory: chopper | ||
run: pub run test -p chrome | ||
needs: | ||
- job_001 | ||
- job_002 |
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 |
---|---|---|
|
@@ -11,4 +11,5 @@ doc/api/ | |
.idea/ | ||
.test_coverage.dart | ||
coverage | ||
chopper/doc/ | ||
chopper/doc/ | ||
.vscode/ |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
dart: | ||
- stable | ||
|
||
stages: | ||
- analyzer_and_format: | ||
- group: | ||
- dartfmt | ||
- dartanalyzer: --fatal-infos . | ||
- unit_test: | ||
- test: | ||
- test: -p chrome | ||
|
||
cache: | ||
directories: | ||
- .dart_tool/build |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
dart: | ||
- stable | ||
|
||
stages: | ||
- analyzer_and_format: | ||
- group: | ||
- dartfmt | ||
- dartanalyzer: --fatal-infos . | ||
|
||
cache: | ||
directories: | ||
- .dart_tool/build |
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 |
---|---|---|
|
@@ -24,5 +24,6 @@ dev_dependencies: | |
|
||
dependency_overrides: | ||
analyzer: 1.1.0 | ||
#Comment before publish | ||
chopper: | ||
path: ../chopper |
Oops, something went wrong.