chore(deps): more strict analysis options bump deps #801
Workflow file for this run
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
name: mason | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- .github/workflows/mason.yaml | |
- packages/mason_logger/** | |
- packages/mason/** | |
pull_request: | |
branches: | |
- master | |
paths: | |
- .github/workflows/mason.yaml | |
- packages/mason_logger/** | |
- packages/mason/** | |
jobs: | |
setup: | |
defaults: | |
run: | |
working-directory: packages/mason | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3.5.3 | |
- uses: dart-lang/setup-dart@v1 | |
- name: Install Dependencies | |
run: dart pub get | |
- name: Format | |
run: dart format --set-exit-if-changed lib | |
- name: Analyze | |
run: dart analyze --fatal-infos --fatal-warnings . | |
build: | |
needs: setup | |
defaults: | |
run: | |
working-directory: packages/mason | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest, windows-2019, ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v3.5.3 | |
- uses: dart-lang/setup-dart@v1 | |
- name: Install Dependencies | |
run: dart pub get | |
- name: Run Tests | |
run: | | |
dart pub global activate coverage 1.2.0 | |
dart test -j 1 -x pull-request-only --coverage=coverage && dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --packages=.dart_tool/package_config.json --report-on=lib | |
- name: Check Code Coverage | |
uses: VeryGoodOpenSource/very_good_coverage@v2 | |
with: | |
path: packages/mason/coverage/lcov.info | |
pana: | |
defaults: | |
run: | |
working-directory: packages/mason | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3.5.3 | |
- uses: dart-lang/setup-dart@v1 | |
- name: Install Dependencies | |
run: | | |
dart pub get | |
dart pub global activate pana | |
- name: Verify Pub Score | |
run: ../../tool/verify_pub_score.sh |