bootstrap project #192
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
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/cli.yml' | |
- 'packages/jaspr_cli/**' | |
push: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/cli.yml' | |
- 'packages/jaspr_cli/**' | |
name: CLI Pipeline | |
jobs: | |
cli: | |
name: Test CLI | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
Variant: | |
- sampn | |
- vnsnn | |
- cnsnn | |
- vanen | |
- cnnen | |
- vanns | |
- sanpn | |
- cnspn | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
- uses: dart-lang/[email protected] | |
- uses: subosito/flutter-action@v2 | |
- name: Bootstrap | |
run: | | |
dart pub global activate melos | |
dart pub global activate coverage | |
melos bootstrap --no-private | |
jaspr --disable-analytics | |
- name: Run cli test | |
run: melos run coverage:cli | |
env: | |
VARIANT: ${{matrix.VARIANT}} | |
- name: Upload Coverage | |
uses: codecov/codecov-action@v3 | |
with: | |
files: coverage/*_lcov.info |