Updated flutter to 3.16.4 #103
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: Build with tests | |
on: | |
push: | |
branches: [ main, dev, feature/* ] | |
pull_request: | |
branches: [ main, dev, feature/* ] | |
env: | |
flutter_version: "3.16.4" | |
jobs: | |
tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: windows-2019 | |
- os: windows-2022 | |
- os: ubuntu-20.04 | |
- os: ubuntu-22.04 | |
- os: macos-12 | |
- os: macos-11 | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v3.1.0 | |
- name: Setup the flutter environment. | |
uses: subosito/flutter-action@v2.8.0 | |
with: | |
flutter-version: ${{ env.flutter_version }} | |
channel: 'stable' | |
cache: true | |
cache-key: flutter-${{ matrix.os }} | |
cache-path: ${{ runner.tool_cache }}/flutter | |
- name: Restore packages | |
run: flutter pub get | |
- if: runner.os == 'Linux' | |
name: Build native utils (Linux) | |
run: | | |
cd nativeUtils | |
mkdir cmake | |
cd cmake | |
cmake .. | |
make install | |
- if: runner.os == 'macOS' | |
name: Build native utils (macOS) | |
run: | | |
cd macos | |
sh buildForMacos.sh | |
- name: Analyze | |
run: flutter analyze | |
- name: Run tests | |
run: flutter test --coverage |