feat: support Dart 3 #104
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: CI | |
env: | |
MELSO_VERSION: 3.0.0-dev.0 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
format: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Dart | |
uses: dart-lang/setup-dart@v1 | |
- name: Setup Melos | |
uses: bluefireteam/melos-action@v2 | |
with: | |
melos-version: ${{ env.MELSO_VERSION }} | |
- name: Activate daco | |
run: melos activate | |
- name: Check formatting of Dart code | |
run: melos format:check | |
analyze: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Dart | |
uses: dart-lang/setup-dart@v1 | |
- name: Setup Melos | |
uses: bluefireteam/melos-action@v2 | |
with: | |
melos-version: ${{ env.MELSO_VERSION }} | |
- name: Analyze Dart packages | |
uses: invertase/github-action-dart-analyzer@v1 | |
with: | |
fatal-infos: true | |
fatal-warnings: true | |
test: | |
timeout-minutes: 15 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Dart | |
uses: dart-lang/setup-dart@v1 | |
- name: Setup Melos | |
uses: bluefireteam/melos-action@v2 | |
with: | |
melos-version: ${{ env.MELSO_VERSION }} | |
- name: Activate daco | |
run: melos activate | |
- name: Run tests | |
run: melos test --no-select |