Fixes buildCloudFunctions
default paths on non-unix systems
#7
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: Analyze | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
analyze-dart: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: subosito/flutter-action@v2 | |
with: | |
cache: true | |
- name: Pub cache | |
uses: actions/cache@v4 | |
env: | |
CACHE_NAME: firebase_js_interop | |
with: | |
path: ${{ env.PUB_CACHE }} | |
key: pub-cache-${{ env.CACHE_NAME }}-${{ hashFiles('**/pubspec.lock') }} | |
restore-keys: pub-cache-${{ env.CACHE_NAME }}- | |
- name: Install puby | |
run: dart pub global activate puby | |
- name: Pub get | |
run: puby link | |
- name: Format | |
run: dart format --set-exit-if-changed . | |
- name: Analyze | |
run: dart analyze --fatal-infos . | |
# TODO: Run custom_lint when https://github.com/invertase/dart_custom_lint/issues/271 lands | |
pana: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: subosito/flutter-action@v2 | |
with: | |
cache: true | |
- name: Pub cache | |
uses: actions/cache@v4 | |
env: | |
CACHE_NAME: firebase_js_interop | |
with: | |
path: ${{ env.PUB_CACHE }} | |
key: pub-cache-${{ env.CACHE_NAME }}-${{ hashFiles('**/pubspec.lock') }} | |
restore-keys: pub-cache-${{ env.CACHE_NAME }}- | |
- name: Install puby | |
run: dart pub global activate puby | |
- name: Pub get | |
run: puby link | |
- name: Package scan | |
run: | | |
dart pub global activate pana | |
pana --exit-code-threshold 0 |