mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
Disable tests if no secret exists
This commit is contained in:
parent
b9a988a48d
commit
50b45367dc
7
.github/workflows/github.yml
vendored
7
.github/workflows/github.yml
vendored
@ -73,7 +73,6 @@ jobs:
|
||||
test: 0
|
||||
preset: linux-clang-test
|
||||
- platform: linux
|
||||
|
||||
os: ubuntu-22.04
|
||||
test: 1
|
||||
preset: linux-gcc-test
|
||||
@ -208,9 +207,9 @@ jobs:
|
||||
verbose: 2
|
||||
|
||||
- name: Clone Heroes 3 data
|
||||
if: ${{ startsWith(matrix.preset, 'linux') && endsWith(matrix.preset, 'test') }}
|
||||
env:
|
||||
HEROES_3_DATA_PASSWORD: ${{ secrets.HEROES_3_DATA_PASSWORD }}
|
||||
if: ${{ env.HEROES_3_DATA_PASSWORD != '' && matrix.test == 1 }}
|
||||
run: |
|
||||
wget --progress=dot:giga https://github.com/vcmi-mods/vcmi-test-data/releases/download/v1.0/h3_assets.zip
|
||||
7za x h3_assets.zip -p$HEROES_3_DATA_PASSWORD
|
||||
@ -263,7 +262,9 @@ jobs:
|
||||
cmake --build --preset ${{matrix.preset}}
|
||||
|
||||
- name: Test
|
||||
if: ${{ matrix.test == 1 }}
|
||||
env:
|
||||
HEROES_3_DATA_PASSWORD: ${{ secrets.HEROES_3_DATA_PASSWORD }}
|
||||
if: ${{ env.HEROES_3_DATA_PASSWORD != '' && matrix.test == 1 }}
|
||||
run: |
|
||||
ctest --preset ${{matrix.preset}}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user