Skip to content

chore(deps): bump actions/checkout from 4.1.1 to 4.1.2 #14

chore(deps): bump actions/checkout from 4.1.1 to 4.1.2

chore(deps): bump actions/checkout from 4.1.1 to 4.1.2 #14

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@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
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@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- 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@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- 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