Skip to content

feat: support latest option in SDK install #12

feat: support latest option in SDK install

feat: support latest option in SDK install #12

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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- 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@eaa763f6ffc21c7a37837f56cd5f9737f27fc6c8 # v1.8.0
with:
name: "Dart Test"
path: "test-results.json"
reporter: "dart-json"
fail-on-error: "true"