Skip to content

fix: drawEnergyHarvestInfo() 在房间数据不存在时跳过 #690

fix: drawEnergyHarvestInfo() 在房间数据不存在时跳过

fix: drawEnergyHarvestInfo() 在房间数据不存在时跳过 #690

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os: [windows-2019]
node-version: [16.x, 18.x, 20.x, latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v3
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ matrix.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ matrix.os }}-node-${{ matrix.node-version }}
${{ matrix.os }}-node-
${{ matrix.os }}-
- run: npm install
- run: npm run lint
- run: npm run build --if-present
- run: npm run test
- name: Update Code Artifact
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: dist
path: dist