feat: add firebase nodejs demo (#218) #860
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: Packages check | |
concurrency: | |
group: packages-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
on: | |
push: | |
branches: | |
- "**" | |
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 prepare | |
- name: Check formatting | |
run: melos format:check:packages | |
- name: Lint | |
run: melos analyze:packages | |
- name: Publish dry-run | |
run: melos publish --dry-run --yes | |
pana: | |
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 prepare | |
- name: Check pana score | |
run: | | |
flutter pub global activate pana | |
melos analyze:packages:pana --no-select | |
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 and prepare project | |
run: melos prepare | |
- name: Run flutter tests | |
run: melos test | |
- name: Run dart tests | |
run: melos test:web |