Skip to content

Commit

Permalink
Update golden test generation workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DDavidPrime committed Aug 29, 2024
1 parent a990906 commit 835cbf5
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/golden_test_generation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ on:
options:
- booking_app
- todoapp
- rx_bloc_cli_generated_project

jobs:
package:
example_project:
if: ${{ inputs.package }} != rx_bloc_cli_generated_project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -40,3 +42,27 @@ jobs:
with:
name: "${{ inputs.package }}_tests"
path: "examples/${{ inputs.package }}/test/"

rx_bloc_cli_project:
if: ${{ inputs.package }} == rx_bloc_cli_generated_project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: "stable"
cache: true
cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }}
- run: dart --version
- run: flutter --version
- name: Generate rx_bloc_cli project
working-directory: "packages/rx_bloc_cli/bin"
run: ./compile_test_project.sh
- name: Generate golden files
working-directory: "packages/rx_bloc_cli/example/testapp"
run: flutter test --update-goldens
- name: Upload test directory
uses: actions/upload-artifact@v3
with:
name: "${{ inputs.package }}_tests"
path: "packages/rx_bloc_cli/example/testapp/test/"

0 comments on commit 835cbf5

Please sign in to comment.