-
Notifications
You must be signed in to change notification settings - Fork 75
32 lines (27 loc) · 960 Bytes
/
ci.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
name: push_test_server
on:
pull_request:
jobs:
test:
if: github.repository == 'IceWhaleTech/CasaOS-UI'
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 16.x ]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- name: '使用 Use Node.js ${{ matrix.node-version }}'
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: '缓存 Cache'
uses: actions/cache@v3
id: cache-dependencies
with:
path: node_modules
key: ${{runner.OS}}-${{hashFiles('**/yarn.lock')}}
- run: yarn install
- name: 'Unit tests'
run: yarn test