From 7952aeec12a8efc893b89f3ab5d2b66fb035fc2e Mon Sep 17 00:00:00 2001 From: Andrew Cassidy Date: Thu, 12 Sep 2024 20:46:04 -0700 Subject: [PATCH] regression test for assemble-release layout --- .github/workflows/internal-test-plugin.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/internal-test-plugin.yml b/.github/workflows/internal-test-plugin.yml index 8d53e28..1264949 100644 --- a/.github/workflows/internal-test-plugin.yml +++ b/.github/workflows/internal-test-plugin.yml @@ -22,6 +22,19 @@ jobs: solution-file-path: plugin-mod.csproj - uses: ./.github/actions/assemble-release + id: assemble-release with: - artifacts: ${{ env.TESTDIR }}/GameData + working-directory: ${{ env.TESTDIR }} output-file-name: plugin-mod + + - name: Get github artifact + uses: actions/download-artifact@v4 + with: + name: plugin-mod + path: github-artifact + + - name: Compare with zip artifact + run: | + unzip ${{ steps.assemble-release.outputs.artifact-path }} zip-artifact + if [[ $(tree github-artifact) != $(tree zip-artifact) ]]; then false; fi # fail if contents differ + if [[ ! -d test2/GameData ]]; then false; fi # fail if GameData folder isnt present \ No newline at end of file