Set up a shared pub workspace #223
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: package:dartpad_shared | |
permissions: read-all | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- '.github/workflows/dartpad_shared.yml' | |
- 'pkgs/dartpad_shared/**' | |
pull_request: | |
branches: [ main ] | |
paths: | |
- '.github/workflows/dartpad_shared.yml' | |
- 'pkgs/dartpad_shared/**' | |
schedule: | |
- cron: '0 0 * * 0' # weekly | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: pkgs/dartpad_shared/ | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff | |
- name: Ensure Dart tool is setup and check version | |
run: dart --version | |
- name: Install dart dependencies | |
run: dart pub get | |
- name: Verify formatting | |
run: dart format --output=none --set-exit-if-changed . | |
- name: Regenerate model classes | |
run: dart run build_runner build --delete-conflicting-outputs | |
- name: Analyze project source | |
run: dart analyze --fatal-infos |