feat: get variation details by variation type (#19) #76
This file contains hidden or 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 and run unit tests | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "*.md" | |
workflow_dispatch: | |
workflow_call: | |
concurrency: | |
group: release-build-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
FLUTTER_VERSION: "3.19.2" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache Flutter dependencies | |
uses: actions/cache@v4 | |
with: | |
path: /opt/hostedtoolcache/flutter # For Ubuntu machine | |
key: ${{ runner.os }}-flutter-install-cache-${{ env.FLUTTER_VERSION }} | |
- name: Setup Flutter SDK | |
uses: subosito/flutter-action@62f096cacda5168a3bd7b95793373be14fa4fbaf # v2.13.0 | |
with: | |
flutter-version: ${{ env.FLUTTER_VERSION }} | |
channel: stable | |
- name: Install Flutter dependencies | |
run: flutter pub get | |
- name: Run unit tests | |
run: make unit-test | |
build-example-app-android: | |
runs-on: macos-13-xlarge | |
timeout-minutes: 45 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache Flutter dependencies | |
uses: actions/cache@v4 | |
with: | |
path: /Users/runner/hostedtoolcache/flutter # For mac OS | |
key: ${{ runner.os }}-flutter-install-cache-${{ env.FLUTTER_VERSION }} | |
- name: Setup Flutter SDK | |
uses: subosito/flutter-action@62f096cacda5168a3bd7b95793373be14fa4fbaf # v2.13.0 | |
with: | |
flutter-version: ${{ env.FLUTTER_VERSION }} | |
channel: stable | |
- name: Install Flutter dependencies | |
run: flutter pub get | |
- name: Build the example app | |
env: | |
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dorg.gradle.jvmargs="-Xmx1536m -XX:MaxMetaspaceSize=2g" | |
run: | | |
make build-android | |
build-example-app-ios: | |
runs-on: macos-13-xlarge | |
timeout-minutes: 45 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache Flutter dependencies | |
uses: actions/cache@v4 | |
with: | |
path: /Users/runner/hostedtoolcache/flutter # For mac OS | |
key: ${{ runner.os }}-flutter-install-cache-${{ env.FLUTTER_VERSION }} | |
- name: Setup Flutter SDK | |
uses: subosito/flutter-action@62f096cacda5168a3bd7b95793373be14fa4fbaf # v2.13.0 | |
with: | |
flutter-version: ${{ env.FLUTTER_VERSION }} | |
channel: stable | |
- name: Build the example app | |
run: | | |
make build-ios |