Skip to content

Bumped action versions #38

Bumped action versions

Bumped action versions #38

Workflow file for this run

on:
pull_request:
name: Analyze and test
jobs:
analyze-test:
runs-on: ubuntu-latest
strategy:
matrix:
modules:
- default
- data
- domain
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.0.5"
channel: "stable"
cache: true
cache-key: "deps-${{ hashFiles('**/pubspec.lock') }}"
cache-path: ${{ runner.tool_cache }}/flutter # optional, change this to specify the cache path
- name: Run prebuild
run: bash prebuild.sh
- name: Analyze
uses: zgosalvez/github-actions-analyze-dart@v1
continue-on-error: true
- name: Test
run: |
if [[ "${{ matrix.modules }}" == "default" ]]; then
flutter test -r json > test-report-${{ matrix.modules }}.json
else
flutter test -r json ${{ matrix.modules }} > test-report-${{ matrix.modules }}.json
fi
- name: Upload test reports
if: success() || failure() # Always upload report
uses: actions/upload-artifact@v4
with:
name: test-reports
path: test-report*.json