Skip to content

chore(deps): bump actions/setup-java from 4.0.0 to 4.2.1 #13

chore(deps): bump actions/setup-java from 4.0.0 to 4.2.1

chore(deps): bump actions/setup-java from 4.0.0 to 4.2.1 #13

Workflow file for this run

name: CICDTest
on:
push:
branches:
- ci-test
pull_request:
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
# Declare default permissions as read only.
permissions: read-all
jobs:
build:
name: Build ${{ matrix.target }}
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
target: ["apk --debug", "appbundle --debug", "ios --no-codesign", macos, web]
steps:
- name: Set up JDK 11
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
with:
java-version: 11
distribution: temurin
# Set up Flutter.
- name: Clone Flutter repository with master channel
uses: subosito/flutter-action@cc97e1648fff6ca5cc647fa67f47e70f7895510b
with:
channel: master
- run: flutter doctor -v
# Checkout gallery code and get packages.
- name: Checkout gallery code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- run: flutter pub get
- run: flutter build ${{ matrix.target }}
unit-test:
name: Unit tests on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
steps:
# Set up Flutter.
- name: Clone Flutter repository with master channel
uses: subosito/flutter-action@cc97e1648fff6ca5cc647fa67f47e70f7895510b
with:
channel: master
- run: flutter doctor -v
# Checkout gallery code and get packages.
- name: Checkout gallery code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- run: flutter pub get
# Analyze, check formatting, and run unit tests.
- run: flutter analyze
# If the test fails, execute the following command to apply fixes.
# dart format .
- name: Ensure the Dart code is formatted correctly
run: dart format --set-exit-if-changed .
- name: Run Flutter unit tests
run: flutter test
# TODO benchmark-test
# TODO golden-test