-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (67 loc) · 1.69 KB
/
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
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
69
70
71
72
73
74
75
name: ci
on:
push:
workflow_dispatch:
env:
TZ: Asia/Shanghai
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout 🚀
uses: actions/checkout@v3
with:
ref: master
fetch-depth: 0
- name: Install pnpm 🚀
uses: pnpm/action-setup@v2
with:
version: 7
run_install: true
- name: Setup Node.js 🚀
uses: actions/setup-node@v3
with:
node-version: 14
cache: pnpm
- name: Install Deps 🚀
run: pnpm install --frozen-lockfile
- name: Build project 🚀
env:
NODE_OPTIONS: --max_old_space_size=4096
run: pnpm run build
- name: copy README.md
run: cp README.md dist
needs: clear
codecov:
runs-on: ubuntu-latest
steps:
- name: Code coverage
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
needs: ci
clear:
name: clear
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v2
with:
repository: 'Apocalypsor/Workflows-Cleaner'
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install pipenv
run: python -m pip install --upgrade pipenv wheel
- name: Install dependencies
run: |
pipenv requirements > requirements.txt
pip install -r requirements.txt
- name: Clean
env:
GITHUB_REPO: ${{ github.repository }}
GITHUB_TOKEN: ${{ secrets.ACTION_SECRET }}
EXPIRE_TIME: '12h'
run: python run.py