Skip to content

Commit 520d1a9

Browse files
authored
Merge pull request #7 from RT-Thread/ci
add ci.yml for github.
2 parents 5b81b5e + edcf0a0 commit 520d1a9

File tree

3 files changed

+5278
-0
lines changed

3 files changed

+5278
-0
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: '20' # 使用与你的扩展兼容的Node.js版本
20+
cache: 'npm'
21+
22+
- name: Install dependencies
23+
run: npm install && cd src/vue && npm install && cd ../..
24+
25+
- name: compile
26+
run: npm run compile

0 commit comments

Comments
 (0)