mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-16 07:24:53 +09:00
Automatically obtain required mods in test
Build the clusterio_lib mod from source and download and copy the subspace_storage mod used for testing if it's not present in the mods directory. This removes a manual step needed to run tests on a new clone of the repository.
This commit is contained in:
1 parent
94d67cef71
commit
8b0d7a67b5
2 files changed
+33
-4
No files matched your search
@@ -26,8 +26,6 @@ jobs:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- run: pnpm i --no-optional --no-frozen-lockfile
|
||||
- run: wget -q -O factorio.tar.gz https://www.factorio.com/get-download/latest/headless/linux64 && tar -xf factorio.tar.gz && rm factorio.tar.gz
|
||||
- run: node packages/lib/build_mod --source-dir packages/host/lua/clusterio_lib --output-dir temp/test/mods
|
||||
- run: wget -q -O temp/test/mods/subspace_storage_1.99.8.zip -L https://github.com/clusterio/subspace_storage/releases/download/1.99.6/subspace_storage_1.99.8.zip
|
||||
- name: Run tests
|
||||
if: ${{ matrix.node-version != '18.x' }}
|
||||
run: pnpm test
|
||||
|
||||
Reference in new issue
Block a user