mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-21 08:03:13 +09:00
Remove node 18 add factorio 2.0
This commit is contained in:
1 file changed
+7
-7
@@ -12,10 +12,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [18.x, 20.x, 22.x]
|
# Supported versions are active lts and maintenance see https://nodejs.org/en/about/releases/
|
||||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
node-version: [20.x, 22.x]
|
||||||
factorio-version: [1.1.110]
|
# Supported versions are latest stable and one minor version before stable (even if from a previous major)
|
||||||
# Supported versions are latest stable/experimental and one minor version before stable (even if from a previous major)
|
factorio-version: [1.1.110, 2.0.47]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -31,13 +31,13 @@ jobs:
|
|||||||
- name: Use Factorio ${{ matrix.factorio-version }}
|
- name: Use Factorio ${{ matrix.factorio-version }}
|
||||||
run: wget -q -O factorio.tar.gz https://www.factorio.com/get-download/${{ matrix.factorio-version }}/headless/linux64 && tar -xf factorio.tar.gz && rm factorio.tar.gz
|
run: wget -q -O factorio.tar.gz https://www.factorio.com/get-download/${{ matrix.factorio-version }}/headless/linux64 && tar -xf factorio.tar.gz && rm factorio.tar.gz
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
if: ${{ matrix.node-version != '18.x' || matrix.factorio-version != '1.1.110' }}
|
if: ${{ matrix.node-version != '20.x' || matrix.factorio-version != '1.1.110' }}
|
||||||
run: pnpm test
|
run: pnpm test
|
||||||
- name: Run coverage
|
- name: Run coverage
|
||||||
if: ${{ matrix.node-version == '18.x' && matrix.factorio-version == '1.1.110' }}
|
if: ${{ matrix.node-version == '20.x' && matrix.factorio-version == '1.1.110' }}
|
||||||
run: pnpm run ci-cover
|
run: pnpm run ci-cover
|
||||||
- name : Upload coverage to Codecov
|
- name : Upload coverage to Codecov
|
||||||
if: ${{ matrix.node-version == '18.x' && matrix.factorio-version == '1.1.110' }}
|
if: ${{ matrix.node-version == '20.x' && matrix.factorio-version == '1.1.110' }}
|
||||||
uses: codecov/codecov-action@v4
|
uses: codecov/codecov-action@v4
|
||||||
with:
|
with:
|
||||||
files: ./coverage/lcov.info
|
files: ./coverage/lcov.info
|
||||||
|
|||||||
Reference in new issue
Block a user