Skip to content

いくつかの修正など #1230

いくつかの修正など

いくつかの修正など #1230

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Flutter Testを実行する
on:
push:
branches: [ "master", "develop" ]
pull_request:
branches: [ "master", "develop" ]
permissions:
contents: read
pull-requests: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
- run: dart format --output=none --set-exit-if-changed .
- name: Get Flutter version from .fvmrc
run: echo "FLUTTER_FVM_VERSION=$(jq -r .flutter .fvmrc)" >> $GITHUB_ENV
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_FVM_VERSION }}
cache: true
- name: Run flutter version
run: flutter --version
- name: Run flutter pub get
run: flutter pub get
# ゆくゆくは
# - run: flutter analyze --fatal-infos
- name: Run flutter test with coverage
run: flutter test --coverage --coverage-path=~/coverage/lcov.info
- uses: codecov/codecov-action@v4
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ~/coverage/lcov.info