Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

chore: bump actions/checkout from 4.1.0 to 4.1.1 #472

chore: bump actions/checkout from 4.1.0 to 4.1.1

chore: bump actions/checkout from 4.1.0 to 4.1.1 #472

Workflow file for this run

name: CI
on:
push:
branches:
- trunk
pull_request:
branches:
- trunk
permissions: # added using https://github.com/step-security/secure-workflows
contents: write # required for stefanzweifel/git-auto-commit-action
jobs:
build:
runs-on: ubuntu-latest
outputs:
commit_ref: ${{ steps.commit_id.outputs.changes_detected && steps.commit_id.outputs.commit_hash || github.ref }}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: subosito/flutter-action@cc97e1648fff6ca5cc647fa67f47e70f7895510b # v2.11.0
with:
channel: "stable"
cache: true
cache-key: ${{ format('flutter-{0}', github.ref) }}
- run: flutter --version
- uses: ./.github/composite/install_dependencies_job
- uses: ./.github/composite/build_job
- uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a # v4.16.0
id: commit_id
with:
commit_message: "chore: automated build"
- run: echo ${{ steps.commit_id.outputs.commit_hash }}
at_app_bundler:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ needs.build.outputs.commit_ref }}
- uses: subosito/flutter-action@cc97e1648fff6ca5cc647fa67f47e70f7895510b # v2.11.0
with:
channel: "stable"
cache: true
cache-key: ${{ format('flutter-{0}', github.ref) }}
- run: dart run melos bootstrap
- name: Dart Analyze
working-directory: ./packages/at_app_bundler
# The mason brick in at_app_bundler is not valid dart code
# Must analyze each directory individually
run: |
dart analyze ./lib
dart analyze ./bin
at_app_create:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ needs.build.outputs.commit_ref }}
- uses: subosito/flutter-action@cc97e1648fff6ca5cc647fa67f47e70f7895510b # v2.11.0
with:
channel: "stable"
cache: true
cache-key: ${{ format('flutter-{0}', github.ref) }}
- run: dart run melos bootstrap
- name: Dart Analyze
working-directory: ./packages/at_app_create
run: dart analyze
at_app_flutter:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ needs.build.outputs.commit_ref }}
- uses: subosito/flutter-action@cc97e1648fff6ca5cc647fa67f47e70f7895510b # v2.11.0
with:
channel: "stable"
cache: true
cache-key: ${{ format('flutter-{0}', github.ref) }}
- run: dart run melos bootstrap
- name: Dart Analyze
working-directory: ./packages/at_app_flutter
run: dart analyze
- name: Unit Tests
working-directory: ./packages/at_app_flutter
run: flutter test --no-pub
at_app:
needs: build
runs-on: ubuntu-latest
outputs:
build_key: ${{ needs.build.outputs.build_key }}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ needs.build.outputs.commit_ref }}
- uses: subosito/flutter-action@cc97e1648fff6ca5cc647fa67f47e70f7895510b # v2.11.0
with:
channel: "stable"
cache: true
cache-key: ${{ format('flutter-{0}', github.ref) }}
- run: dart run melos bootstrap
- name: Dart Analyze
working-directory: ./packages/at_app
run: dart analyze
- name: Unit Tests
working-directory: ./packages/at_app
run: flutter test --no-pub
# GENERATED APP TESTS
generated_template_app:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ needs.build.outputs.commit_ref }}
- uses: subosito/flutter-action@cc97e1648fff6ca5cc647fa67f47e70f7895510b # v2.11.0
with:
channel: "stable"
cache: true
cache-key: ${{ format('flutter-{0}', github.ref) }}
- run: dart run melos bootstrap
- uses: ./.github/composite/generated_app_job
generated_demo_apps:
needs: build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
name:
- chit_chat
- snackbar
- snackbar_sender
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ needs.build.outputs.commit_ref }}
- uses: subosito/flutter-action@cc97e1648fff6ca5cc647fa67f47e70f7895510b # v2.11.0
with:
channel: "stable"
cache: true
cache-key: ${{ format('flutter-{0}', github.ref) }}
- run: dart run melos bootstrap
- uses: ./.github/composite/generated_app_job
with:
name: ${{ matrix.name }}
dispose:
runs-on: ubuntu-latest
if: ${{ always() }} # Always dispose, regardless of whether jobs pass or fail
needs: # Needs everything to run before we dispose
- build
- at_app_bundler
- at_app_create
- at_app_flutter
- at_app
- generated_template_app
- generated_demo_apps
steps:
- name: Dispose of temporary branch
if: ${{ github.event.pull_request && github.event.pull_request.head.repo.full_name != github.repository }}
uses: dawidd6/action-delete-branch@d1efac9a6f7a9b408d4e8ff663a99c1fbac17b3f # v3
with:
github_token: ${{ github.token }}
branches: ${{ format('build_action-{0}-{1}', github.run_id, github.run_attempt) }}