-
Notifications
You must be signed in to change notification settings - Fork 3
68 lines (57 loc) · 1.81 KB
/
RCL.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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