Update dart.yml #5
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 | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
# Setting up the Flutter SDK | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: '3.13.8' | ||
- name: Install dependencies | ||
run: flutter pub get | ||
# Uncomment this step to verify the use of 'dart format' on each commit. | ||
# - name: Verify formatting | ||
# run: flutter format --output=none --set-exit-if-changed . | ||
# Conditional step for analyzing the project source | ||
- name: Analyze project source | ||
if: ${{ secrets.SKIP_ANALYZE != 'true' }} | ||
Check failure on line 30 in .github/workflows/dart.yml GitHub Actions / DartInvalid workflow file
|
||
run: flutter analyze | ||
# Run tests | ||
- name: Run tests | ||
run: flutter test | ||
- name: dart-package | ||
uses: nikosportolos/dart_package@v0.2.1 | ||
with: | ||
coverage: true | ||
codecov: true | ||
codecov_token: ${{ secrets.CODECOV_TOKEN }} | ||
publish: true | ||
pubdev_token: ${{ secrets.PUBDEV_TOKEN }} | ||
sdk: flutter | ||
flutter-sdk: '3.13.8' |