mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-09-21 17:04:00 +00:00
Small changes to node ci
This commit is contained in:
@@ -9,38 +9,40 @@ env:
|
|||||||
# inside a clusterio checkout with this repository under external_plugins
|
# inside a clusterio checkout with this repository under external_plugins
|
||||||
CLUSTERIO_REPOSITORY: clusterio/clusterio
|
CLUSTERIO_REPOSITORY: clusterio/clusterio
|
||||||
CLUSTERIO_REF: master
|
CLUSTERIO_REF: master
|
||||||
|
# Node version to use for the tests. This is used by the setup-node action
|
||||||
|
NODE_VERSION: lts/*
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 20
|
timeout-minutes: 5
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
working-directory: external_plugins/ExpCluster
|
working-directory: external_plugins/ExpCluster
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout clusterio
|
- name: Checkout Clusterio
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: ${{ env.CLUSTERIO_REPOSITORY }}
|
repository: ${{ env.CLUSTERIO_REPOSITORY }}
|
||||||
ref: ${{ env.CLUSTERIO_REF }}
|
ref: ${{ env.CLUSTERIO_REF }}
|
||||||
- name: Checkout ExpCluster into the workspace
|
- name: Checkout ExpCluster
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: external_plugins/ExpCluster
|
path: external_plugins/ExpCluster
|
||||||
- uses: pnpm/action-setup@v4
|
- uses: pnpm/action-setup@v4
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: lts/*
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
- name: Install and build the workspace
|
- name: Install and build
|
||||||
working-directory: .
|
working-directory: .
|
||||||
run: pnpm install --no-frozen-lockfile
|
run: pnpm install --no-frozen-lockfile
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: pnpm --filter "@expcluster/*" run test
|
run: pnpm --filter "@expcluster/*" run test
|
||||||
- name: Build each package on its own
|
- name: Run reference checks
|
||||||
run: |
|
run: |
|
||||||
# pnpm install runs prepare in dependency order, which hides a missing
|
# pnpm install runs prepare in dependency order, which hides missing
|
||||||
# project reference (#473). Building from an empty dist one package at
|
# project references. Building from an empty dist one package at a time
|
||||||
# a time fails unless every cross package import is referenced.
|
# will fail unless every cross package import is referenced correctly.
|
||||||
for pkg in exp_*/; do
|
for pkg in exp_*/; do
|
||||||
rm -rf exp_*/dist
|
rm -rf exp_*/dist
|
||||||
echo "::group::${pkg%/}"
|
echo "::group::${pkg%/}"
|
||||||
|
|||||||
Reference in New Issue
Block a user