-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor CI & use Dart SDK beta (#16)
* refactor CI * upgrade min Dart SDK version beta * codecov badge * 0.5.2
- Loading branch information
1 parent
3388865
commit 24c4556
Showing
10 changed files
with
138 additions
and
145 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,34 @@ | ||
# See: https://docs.codecov.io/docs/codecov-yaml | ||
|
||
codecov: | ||
notify: | ||
require_ci_to_pass: yes | ||
|
||
coverage: | ||
precision: 2 | ||
round: down | ||
range: "40...100" | ||
|
||
status: | ||
project: | ||
default: | ||
target: 70% | ||
patch: no # See: https://docs.codecov.io/docs/commit-status#section-patch-status | ||
changes: no | ||
|
||
parsers: | ||
gcov: | ||
branch_detection: | ||
conditional: yes | ||
loop: yes | ||
method: no | ||
macro: no | ||
|
||
comment: # See: https://docs.codecov.io/docs/pull-request-comments | ||
layout: "reach, diff, flags, files" | ||
behavior: default | ||
require_changes: false | ||
require_base: true | ||
require_head: true | ||
|
||
# ignore: # See: https://docs.codecov.io/docs/ignoring-paths |
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,46 @@ | ||
|
||
name: Dart CI | ||
|
||
on: | ||
pull_request: | ||
paths: ['**.dart', 'pubspec.*', 'analysis_options.yaml', '.github/workflows/dart_ci.yaml'] | ||
push: | ||
branches: [ main ] | ||
paths: ['**.dart', 'pubspec.*', 'analysis_options.yaml', '.github/workflows/dart_ci.yaml'] | ||
|
||
jobs: | ||
format: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: google/dart:beta | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: dart format | ||
run: dart format ./ -l 120 --set-exit-if-changed | ||
|
||
analyze: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: google/dart:beta | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: install dependencies | ||
run: pub get | ||
- name: analyzer | ||
run: dart analyze --fatal-infos --fatal-warnings . | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: google/dart:beta | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: install dependencies | ||
run: pub get | ||
- name: run test | ||
run: pub run test . --coverage=coverage | ||
- name: coverage | ||
run: pub run coverage:format_coverage --lcov --packages=.packages --in coverage --out lcov.info | ||
- uses: codecov/codecov-action@v1 | ||
with: | ||
file: lcov.info |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# 0.5.2 | ||
- upgrade dependencies | ||
|
||
# 0.5.1 | ||
- upgrade dependencies | ||
- mild fix build info output format | ||
|
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
Oops, something went wrong.