forked from purocean/yn
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 767 Bytes
/
Copy pathtest.yml
File metadata and controls
39 lines (32 loc) · 767 Bytes
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
name: Test
on:
push:
branches:
- develop
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup Node.js environment
uses: actions/setup-node@v2.1.2
with:
node-version: 22.x
- name: Cache yarn dependencies
uses: actions/cache@v3
with:
path: |
~/.cache/yarn
node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install
- name: Run tests
run: yarn test