entrypoint.sh:wait for mod to finish building before testing existence (#7)
* entrypoint.sh:wait for mod to finish building before testing existence Also fixes the tests (was using trunk instead of local) and add another test https://github.com/orgs/community/discussions/35812#discussioncomment-3853351 fixes #5 * use action from same repository https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-an-action-in-the-same-repository-as-the-workflow Thanks @airtower-luna
This commit is contained in:
parent
afdef9e80c
commit
2390d7164b
31
.github/workflows/test.yml
vendored
31
.github/workflows/test.yml
vendored
@ -8,13 +8,11 @@ on:
|
||||
branches:
|
||||
- trunk
|
||||
|
||||
env:
|
||||
MOD_NAME: community-maps-2
|
||||
|
||||
jobs:
|
||||
test:
|
||||
test-community-maps-2:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
MOD_NAME: community-maps-2
|
||||
MOD_VERSION: ${{ github.sha }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@ -29,14 +27,25 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: true
|
||||
- uses: 0ad-matters/gh-action-build-pyromod@trunk
|
||||
- name: Use action from self
|
||||
uses: ./
|
||||
with:
|
||||
name: ${{ env.MOD_NAME }}
|
||||
version: ${{ env.MOD_VERSION }}
|
||||
directory: 'test/${{ env.MOD_NAME }}'
|
||||
|
||||
test-xiiiad:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
MOD_NAME: xiiiad
|
||||
MOD_VERSION: ${{ github.sha }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: true
|
||||
- name: Use action from self
|
||||
uses: ./
|
||||
with:
|
||||
name: ${{ env.MOD_NAME }}
|
||||
version: ${{ env.MOD_VERSION }}
|
||||
directory: 'test/${{ env.MOD_NAME }}'
|
||||
#- name: Upload Artifacts
|
||||
## Uploads artifacts (combined into a zip file) to the workflow output page
|
||||
#uses: actions/upload-artifact@v3
|
||||
#with:
|
||||
#name: ${{ env.MOD_NAME }}-${{ env.MOD_VERSION }}
|
||||
#path: "output/${{ env.MOD_NAME }}*.*"
|
||||
|
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -1,3 +1,6 @@
|
||||
[submodule "test/community-maps-2"]
|
||||
path = test/community-maps-2
|
||||
url = https://github.com/0ad-matters/community-maps-2
|
||||
[submodule "test/xiiiad"]
|
||||
path = test/xiiiad
|
||||
url = https://github.com/0ADMods/xiiiad
|
||||
|
@ -14,9 +14,7 @@ su user0ad --command "/home/user0ad/usr/bin/pyrogenesis \
|
||||
-mod=package_mod \
|
||||
-archivebuild=$INPUT_DIRECTORY \
|
||||
-archivebuild-output=$OUTPUT_FILE \
|
||||
-archivebuild-compress"
|
||||
-archivebuild-compress" \
|
||||
&& test -f "$OUTPUT_FILE"
|
||||
|
||||
test -f "$OUTPUT_FILE"
|
||||
zip -d "$OUTPUT_FILE" ".git*"
|
||||
|
||||
|
||||
|
1
test/xiiiad
Submodule
1
test/xiiiad
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit f7f537a861de322855ef104628f1d6cd8eb8eb61
|
Loading…
Reference in New Issue
Block a user