Bump JamesIves/github-pages-deploy-action from 4.5.0 to 4.6.1 #423
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: Dart Checks | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
# Test with at least the declared minimum Dart version | |
sdk: ['3.0', stable] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dart-lang/setup-dart@v1 | |
with: | |
sdk: ${{ matrix.sdk }} | |
- name: Install dependencies | |
run: dart pub get | |
- name: Dart Analyzer | |
run: dart analyze | |
- name: Check Dart Format | |
if: ${{ matrix.sdk == 'stable' }} | |
run: dart format --set-exit-if-changed -onone . | |
- name: Unit tests | |
run: dart test | |
- name: Check if Publishable | |
run: dart pub publish --dry-run |