Skip to content

fix: 修复 lint 错误 #635

fix: 修复 lint 错误

fix: 修复 lint 错误 #635

Workflow file for this run

name: RCL
on:
push:
branches: [master, dev]
pull_request:
branches: [master]
jobs:
RCLtest:
strategy:
matrix:
os: [windows-2019]
node-version: [18.x]
RCL: ["RCL1ToRCL2", "RCL2ToRCL3", "RCL3ToRCL4", "RCL4ToRCL5", "RCL5ToRCL6", "RCL6ToRCL7", "RCL7ToRCL8"]
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 build
- run: npx cross-env NODE_ENV=mockup jest --runTestsByPath test/RCLTest/${{ matrix.RCL }}.RCLTest.test.ts
- name: Update Server Artifact
if: ${{ always() }}
uses: actions/upload-artifact@v1
with:
name: RCLtest-result-${{ matrix.RCL }}
path: server
RCLresult:
needs: RCLtest
runs-on: ubuntu-20.04
steps:
- name: Download result for RCLtest
uses: actions/download-artifact@v2
with:
path: RCLtest-result
- name: Display structure of downloaded files
run: ls -R
working-directory: RCLtest-result
- name: Update Result Artifact
uses: actions/upload-artifact@v3
with:
name: RCLresult
path: RCLtest-result