-
Notifications
You must be signed in to change notification settings - Fork 14
42 lines (39 loc) · 1.06 KB
/
test.yaml
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
name: Test
on:
workflow_call:
secrets:
token:
required: false
jobs:
test:
name: Test
runs-on: ubuntu-latest
services:
proxy-for-test:
image: vimagick/dante
ports:
- 1080:1080
steps:
- run: firefox --version
- run: |
container_id=$(docker ps -q)
docker exec $container_id bash -c "eval 'useradd user && echo user:password | chpasswd'"
docker restart $container_id
- uses: actions/checkout@v2
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/[email protected]
with:
version: 6.20.1
run_install: |
- args: [--frozen-lockfile, --strict-peer-dependencies]
- run: node --version
- run: pnpm run ci:test-unit
- run: pnpm run ci:test-func
- run: pnpm run ci:style-check
- run: pnpm run ci:lint