feat: update to support main on the FlutterFire repository #818
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: all_packages | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
analyze: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- uses: bluefireteam/melos-action@v2 | |
- name: "Analyze" | |
uses: invertase/github-action-dart-analyzer@v1 | |
with: | |
fatal-infos: true | |
fatal-warnings: true | |
format: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- uses: bluefireteam/melos-action@v2 | |
- name: "Check formatting" | |
run: melos run format-check | |
test_linux: | |
runs-on: ubuntu-latest | |
timeout-minutes: 25 | |
environment: CI Environment | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | |
FIREBASE_SERVICE_ACCOUNT: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- uses: bluefireteam/melos-action@v2 | |
with: | |
melos-version: '3.0.0' | |
- name: "Install Firebase CLI" | |
run: | | |
sudo npm i -g firebase-tools | |
- name: Install FlutterFire | |
run: | | |
dart pub global activate --source="path" . --executable="flutterfire" --overwrite | |
- name: "Run Tests" | |
run: melos run test --no-select | |
env: | |
FIREBASE_TOKEN: ${{ env.FIREBASE_TOKEN }} | |
test_macos: | |
runs-on: macos-latest | |
timeout-minutes: 25 | |
environment: CI Environment | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | |
FIREBASE_SERVICE_ACCOUNT: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- uses: bluefireteam/melos-action@v2 | |
with: | |
melos-version: '3.0.0' | |
- name: "Install Firebase CLI" | |
run: | | |
sudo npm i -g firebase-tools | |
- name: Install FlutterFire | |
run: | | |
dart pub global activate --source="path" . --executable="flutterfire" --overwrite | |
- name: "Run Tests" | |
run: melos run test --no-select | |
env: | |
FIREBASE_TOKEN: ${{ env.FIREBASE_TOKEN }} | |
test_windows: | |
runs-on: windows-latest | |
timeout-minutes: 25 | |
environment: CI Environment | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | |
FIREBASE_SERVICE_ACCOUNT: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- uses: bluefireteam/melos-action@v2 | |
with: | |
melos-version: '3.0.0' | |
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c | |
name: Install Node.js 18 | |
with: | |
node-version: "18" | |
- name: "Install Firebase CLI" | |
run: | | |
npm i -g firebase-tools | |
- name: Install FlutterFire | |
run: | | |
dart pub global activate --source="path" . --executable="flutterfire" --overwrite | |
- name: "Run Tests" | |
run: cmd /K melos run test --no-select | |
env: | |
FIREBASE_TOKEN: ${{ env.FIREBASE_TOKEN }} |