docs: update documentation for v2.0.0 release #238
This file contains hidden or 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: Dart CI | |
on: | |
pull_request: {} | |
push: | |
branches: | |
- 'main' | |
jobs: | |
build: | |
name: Run on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Import .tool-versions | |
uses: wasabeef/[email protected] | |
id: asdf | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ steps.asdf.outputs.flutter }} | |
cache: true | |
- uses: dart-lang/setup-dart@v1 | |
with: | |
sdk: ${{ steps.asdf.outputs.dart }} | |
- name: Set environment | |
run: echo "$HOME/.pub-cache/bin" >> "$GITHUB_PATH" | |
- name: Setup Bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: ${{ steps.asdf.outputs.bun }} | |
- name: Get dependencies | |
run: | | |
dart pub global activate melos | |
melos get | |
bun install | |
- name: Run tests with coverage | |
run: | | |
melos test | |
- name: Check for any formatting and statically analyze the code. | |
run: | | |
melos format | |
melos analyze |