mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 08:12:44 +03:00
chore(test): add external test fixtures
This commit is contained in:
parent
213847d1a9
commit
fb83239ee8
11
.github/workflows/pr.yml
vendored
11
.github/workflows/pr.yml
vendored
@ -37,6 +37,17 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: recursive
|
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
|
- name: Prepare
|
||||||
run: mkdir build
|
run: mkdir build
|
||||||
|
|
||||||
|
|||||||
11
.github/workflows/push.yml
vendored
11
.github/workflows/push.yml
vendored
@ -40,6 +40,17 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: recursive
|
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
|
- name: Prepare
|
||||||
run: mkdir build
|
run: mkdir build
|
||||||
|
|
||||||
|
|||||||
2
.gitignore
vendored
2
.gitignore
vendored
@ -7,3 +7,5 @@
|
|||||||
/cmake-build-*
|
/cmake-build-*
|
||||||
/out
|
/out
|
||||||
|
|
||||||
|
/test/fixture/*
|
||||||
|
!/test/fixture/README.md
|
||||||
|
|||||||
10
test/fixture/README.md
Normal file
10
test/fixture/README.md
Normal 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
|
||||||
Loading…
Reference in New Issue
Block a user