diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index addfd91..207a047 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -37,6 +37,17 @@ jobs: with: submodules: recursive + - name: Download Fixtures + run: aws s3 cp --endpoint-url ${{ env.AWS_ENDPOINT_URL }} s3://reliquaryhq-whoa/fixture.tgz test/fixture/ + env: + AWS_ACCESS_KEY_ID: ${{ secrets.STORAGE_AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.STORAGE_AWS_SECRET_ACCESS_KEY }} + AWS_ENDPOINT_URL: ${{ vars.STORAGE_AWS_ENDPOINT_URL }} + + - name: Unpack Fixtures + run: tar -xvzf fixture.tgz + working-directory: test/fixture + - name: Prepare run: mkdir build diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 69adc23..29fb381 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -40,6 +40,17 @@ jobs: with: submodules: recursive + - name: Download Fixtures + run: aws s3 cp --endpoint-url ${{ env.AWS_ENDPOINT_URL }} s3://reliquaryhq-whoa/fixture.tgz test/fixture/ + env: + AWS_ACCESS_KEY_ID: ${{ secrets.STORAGE_AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.STORAGE_AWS_SECRET_ACCESS_KEY }} + AWS_ENDPOINT_URL: ${{ vars.STORAGE_AWS_ENDPOINT_URL }} + + - name: Unpack Fixtures + run: tar -xvzf fixture.tgz + working-directory: test/fixture + - name: Prepare run: mkdir build diff --git a/.gitignore b/.gitignore index 6f955bf..8bf97cd 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,5 @@ /cmake-build-* /out +/test/fixture/* +!/test/fixture/README.md diff --git a/test/fixture/README.md b/test/fixture/README.md new file mode 100644 index 0000000..40b9aa1 --- /dev/null +++ b/test/fixture/README.md @@ -0,0 +1,10 @@ +# Test Fixtures + +Some of Whoa's tests require certain assets for the tests to work properly. Since these assets are +not appropriate for redistribution, they must be manually placed here. CI runs in Whoa's source +control platform involve a step that copies these assets into the `fixture` directory without +directly exposing the assets. + +Expected fixtures are: + +* `font/FRIZQT__.TTF`: The primary UI font used in the game