Skip to content

Commit

Permalink
feat: modify style workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zalviandyr committed Mar 18, 2022
1 parent 51dc0d4 commit 8ea85bf
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,47 +7,15 @@ on:
branches: [main]

jobs:
firebase:
name: Firebase Options
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Create firebase options
env:
FIREBASE_OPTIONS_B64: ${{ secrets.FIREBASE_OPTIONS_B64 }}
run: |
cd lib/
echo "$FIREBASE_OPTIONS_B64" > firebase_options.dart.b64
base64 -d -i firebase_options.dart.b64 > firebase_options.dart
- name: Upload firebase artifacts
uses: actions/upload-artifact@v2
with:
name: firebase-options-artifact
path: lib/firebase_options.dart

style:
name: Style and analyze
runs-on: ubuntu-20.04
needs: [firebase]
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
flutter-version: "2.10.1"

- name: Fetch submodule
run: git submodule update --init --recursive

- name: Checkout main in submodule
run: git submodule foreach git checkout main

- name: Download firebase options artifacts
uses: actions/download-artifact@v2
with:
name: firebase-options-artifact
path: lib/

- name: Install dependencies
run: flutter pub get

Expand Down

0 comments on commit 8ea85bf

Please sign in to comment.