Update dart.yml #15
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.22.2' | |
- 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' }} | |
# run: flutter analyze | |
# Run tests | |
# - name: Run tests | |
# run: flutter test | |
- name: dart-package | |
uses: nikosportolos/dart_package@v0.2.1 | |
with: | |
coverage: false | |
codecov: false | |
codecov_token: ${{ secrets.CODECOV_TOKEN }} | |
publish: true | |
pubdev_token: ${{ secrets.PUBDEV_TOKEN }} | |
sdk: flutter | |
flutter-sdk: '3.22.2' |