Skip to content

Instantly share code, notes, and snippets.

@sezabass
Last active April 8, 2023 02:47
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sezabass/73c178512bff7589b45b820bf1bd37b2 to your computer and use it in GitHub Desktop.
Save sezabass/73c178512bff7589b45b820bf1bd37b2 to your computer and use it in GitHub Desktop.
Cache-Article-Whole-CI-File
name: PR Verification
on:
push:
branches:
- develop
pull_request:
jobs:
pr-verification:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
flutter-version: '2.10.13'
cache: true
- name: Cache pubspec dependencies
uses: actions/cache@v2
with:
path: |
${{ env.FLUTTER_HOME }}/.pub-cache
**/.packages
**/.flutter-plugins
**/.flutter-plugin-dependencies
**/.dart_tool/package_config.json
key: build-pubspec-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
build-pubspec-
- name: Cache build runner
uses: actions/cache@v2
with:
path: |
**/.dart_tool
**/*.g.dart
**/*.mocks.dart
**/*.config.dart
key: build-runner-${{ hashFiles('**/asset_graph.json', '**/*.dart', '**/pubspec.lock', '**/outputs.json') }}
restore-keys: |
build-runner-
## /Flutter caching
- run: flutter pub get
- run: flutter pub run build_runner build
- run: flutter analyze
- run: flutter test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment