Skip to content

Commit 8ae3766

Browse files
committed
Add GitHub Action for CI
1 parent f846915 commit 8ae3766

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ['main']
6+
pull_request:
7+
branches: ['main']
8+
9+
jobs:
10+
ci:
11+
if: github.repository == 'skirtles-code/create-vue-lib'
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
- name: Install pnpm
17+
uses: pnpm/action-setup@v4
18+
- name: Set up Node
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
cache: 'pnpm'
23+
- name: Install dependencies
24+
run: pnpm install
25+
- name: Lint
26+
run: pnpm run lint
27+
- name: Build
28+
run: pnpm run build
29+
- name: Test
30+
run: pnpm run test:unit

0 commit comments

Comments
 (0)