feat: migrate to apimock api #65
Workflow file for this run
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: Pull Request Checker | |
# This workflow is triggered on pull request to the repository. | |
# Run this script when PR and status is open | |
on: pull_request | |
jobs: | |
build: | |
# This job will run on ubuntu virtual machine | |
runs-on: ubuntu-latest | |
steps: | |
# Setup Java environment in order to build the Android app. | |
- uses: actions/checkout@v4.2.0 | |
- uses: actions/setup-java@v4.2.2 | |
with: | |
distribution: 'zulu' # See 'Supported distributions' for available options | |
java-version: '17' | |
# Setup the flutter environment. | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' # 'dev', 'alpha', default to: 'stable' | |
#flutter-version: '3.24.3' # you can also specify exact version of flutter | |
# Check Flutter version | |
- name: Check Flutter version | |
run: flutter doctor -v | |
# Get flutter dependencies. | |
- name: Run initialize flutter project | |
run: flutter pub get ;flutter gen-l10n;flutter pub run build_runner build --delete-conflicting-outputs | |
# Statically analyze the Dart code for any errors. | |
- name: Run flutter analyze | |
run: flutter analyze --no-fatal-infos --no-fatal-warnings | |
# Run widget tests for our flutter project. | |
- name: Run flutter test --machine --coverage | |
run: flutter test # For now, just disable flutter test |