Skip to content

Commit b96c20c

Browse files
committed
chore: update ci
1 parent ebe274d commit b96c20c

File tree

3 files changed

+68
-42
lines changed

3 files changed

+68
-42
lines changed

.github/workflows/ci.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Install pnpm
19+
uses: pnpm/[email protected]
20+
21+
- name: Set node
22+
uses: actions/setup-node@v2
23+
with:
24+
node-version: 16.x
25+
cache: pnpm
26+
27+
- name: Setup
28+
run: npm i -g @antfu/ni
29+
30+
- name: Install
31+
run: nci
32+
33+
- name: Lint
34+
run: nr lint
35+
36+
test:
37+
runs-on: ${{ matrix.os }}
38+
39+
strategy:
40+
matrix:
41+
node: [14.x, 16.x]
42+
os: [ubuntu-latest, windows-latest, macos-latest]
43+
fail-fast: false
44+
45+
steps:
46+
- uses: actions/checkout@v2
47+
48+
- name: Install pnpm
49+
uses: pnpm/[email protected]
50+
51+
- name: Set node version to ${{ matrix.node }}
52+
uses: actions/setup-node@v2
53+
with:
54+
node-version: ${{ matrix.node }}
55+
cache: pnpm
56+
57+
- name: Setup
58+
run: npm i -g @antfu/ni
59+
60+
- name: Install
61+
run: nci
62+
63+
- name: Build
64+
run: nr build
65+
66+
- name: Test
67+
run: nr test

.github/workflows/test.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "unplugin-vue-components",
33
"version": "0.18.5",
4+
"packageManager": "[email protected]",
45
"description": "Components auto importing for Vue",
56
"homepage": "https://github.com/antfu/unplugin-vue-components",
67
"bugs": "https://github.com/antfu/unplugin-vue-components/issues",

0 commit comments

Comments
 (0)