chore(deps): bump actions/checkout from 4.2.0 to 4.2.1 in the github_actions group #512
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_logger | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- .github/workflows/mason_logger.yaml | |
- packages/mason_logger/** | |
pull_request: | |
branches: | |
- master | |
paths: | |
- .github/workflows/mason_logger.yaml | |
- packages/mason_logger/** | |
jobs: | |
build: | |
defaults: | |
run: | |
working-directory: packages/mason_logger | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.2.1 | |
- 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 . | |
- name: Run Tests | |
run: | | |
dart pub global activate coverage 1.2.0 | |
dart test --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 --check-ignore | |
- name: Check Code Coverage | |
uses: VeryGoodOpenSource/very_good_coverage@v3 | |
with: | |
path: packages/mason_logger/coverage/lcov.info | |
e2e: | |
defaults: | |
run: | |
working-directory: packages/mason_logger | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4.2.1 | |
- uses: dart-lang/setup-dart@v1 | |
- name: Install Dependencies | |
run: dart pub get | |
- name: Verify CI Behavior | |
run: | | |
dart test/ci.dart >> ci.txt | |
actual="ci.txt" | |
expected="test/fixtures/ci.txt" | |
if cmp -s "$actual" "$expected"; then | |
echo "PASSED" | |
else | |
echo "FAILED" | |
exit 1 | |
fi | |
pana: | |
defaults: | |
run: | |
working-directory: packages/mason_logger | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.2.1 | |
- 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 |