[Chore] Move to monorepo with attachments SDK #2
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: Demos checks | |
concurrency: | |
group: demos-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- demos/** | |
- .github/workflows/** | |
pull_request: | |
paths: | |
- demos/**' | |
- .github/workflows/** | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.x' | |
channel: 'stable' | |
- name: Install Melos | |
run: flutter pub global activate melos | |
- name: Install dependencies | |
run: melos bootstrap | |
- name: Check formatting | |
run: melos format:check:demos | |
- name: Lint | |
run: | | |
./.github/workflows/scripts/copy-config.sh | |
melos analyze:demos | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.x' | |
channel: 'stable' | |
- name: Install melos | |
run: flutter pub global activate melos | |
- name: Install dependencies | |
run: melos bootstrap | |
- name: Run tests | |
run: melos test |