Update dependabot.yml #133
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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
set-up: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
test: | |
needs: set-up | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
runs-on: macos-latest | |
steps: | |
- name: Check out | |
uses: actions/checkout@v4 | |
- name: Setup JDK | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 11 | |
distribution: temurin | |
cache: gradle | |
- name: Setup Flutter SDK | |
timeout-minutes: 10 | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: beta | |
- name: Flutter Pub get | |
run: flutter pub get | |
- name: Flutter Analyze | |
run: flutter analyze | |
- name: Unit Test | |
timeout-minutes: 5 | |
run: flutter test test/unit_test.dart --coverage | |
- name: Widget Test | |
timeout-minutes: 5 | |
run: flutter test test/widget_test.dart --coverage | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
- name: Build iOS | |
timeout-minutes: 10 | |
run: flutter build ios --no-codesign | |
- name: Build Android | |
timeout-minutes: 10 | |
run: flutter build appbundle |