chore(test): add external test fixtures

This commit is contained in:
fallenoak 2025-12-15 14:47:36 -06:00
parent 213847d1a9
commit fb83239ee8
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
4 changed files with 34 additions and 0 deletions

View File

@ -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

View File

@ -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

2
.gitignore vendored
View File

@ -7,3 +7,5 @@
/cmake-build-*
/out
/test/fixture/*
!/test/fixture/README.md

10
test/fixture/README.md Normal file
View File

@ -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