diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index fa3076bc..264858fc 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -311,4 +311,44 @@ jobs: # release_body: ${{ env.RELEASE_BODY }} # artifacts: "retrodeck-artifacts/*.flatpak,retrodeck-artifacts/*.flatpak.sha,retrodeck-artifacts/*Artifact.tar.gz" # tag: ${{ env.TAG }} + + + # Automated Tests + Automated_Tests: + runs-on: ubuntu-latest + outputs: + TAG: ${{ steps.version-tag.outputs.TAG }} + RELEASE_BODY: ${{ steps.version-tag.outputs.RELEASE_BODY }} + MAKE_LATEST: ${{ steps.version-tag.outputs.MAKE_LATEST }} + + steps: + + # Clone Repository + - name: Clone RetroDECK repo + uses: actions/checkout@v4 + with: + submodules: true + + # Download RetroDECK Artifacts + - name: Download all workflow run artifacts + uses: actions/download-artifact@v4.1.8 + + # Install Dependencies + - name: Install dependencies + run: curl "https://raw.githubusercontent.com/RetroDECK/components-template/main/automation_tools/install_dependencies.sh" | bash + + # Install RetroDECK Flatpak + - name: Install RetroDECK Flatpak + run: | + flatpak install --user --bundle --noninteractive -y "retrodeck-artifacts/RetroDECK*.flatpak" + + # Run Post Build Checks + - name: Run Post Build Checks + run: | + /bin/bash ./automation_tools/post_build_check.sh + + # Uninstall RetroDECK Flatpak - Not needed on a thorwaway ubuntu-latest + # - name: Uninstall RetroDECK Flatpak + # run: | + # flatpak remove --user --noninteractive -y net.retrodeck.retrodeck