Skip to content

fix: Fix Dart SDK Installation #49

fix: Fix Dart SDK Installation

fix: Fix Dart SDK Installation #49

Workflow file for this run

name: Check Pull Request
on:
pull_request:
permissions:
contents: read
actions: read
checks: write
jobs:
check:
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
# https://github.com/actions/checkout
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Setup
uses: ./.github/actions/setup
# https://github.com/invertase/github-action-dart-analyzer
- name: Report analyze
uses: invertase/github-action-dart-analyzer@e981b01a458d0bab71ee5da182e5b26687b7101b # v3.0.0
with:
fatal-infos: true
- name: Regenerate code
run: dart run build_runner build --delete-conflicting-outputs
- name: Check difference
run: |
git add -N .
git diff --name-only --exit-code
- name: Run test
run: dart test --file-reporter="json:test-results.json"
continue-on-error: true
# https://github.com/dorny/test-reporter
- name: Report test
uses: dorny/test-reporter@31a54ee7ebcacc03a09ea97a7e5465a47b84aea5 # v1.9.1
with:
name: "Dart Test"
path: "test-results.json"
reporter: "dart-json"
fail-on-error: "true"