Skip to content

Commit e2d96c2

Browse files
committed
🔧 (ci) add nuxt3 ci ; cable release script on it
1 parent 3a1f556 commit e2d96c2

File tree

2 files changed

+65
-5
lines changed

2 files changed

+65
-5
lines changed

.github/workflows/ci-dev.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ jobs:
5353
- name: Build
5454
run: yarn build
5555

56-
- name: Release Edge
57-
if: github.event_name == 'push'
58-
run: ./scripts/release-edge.sh
59-
env:
60-
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
56+
# - name: Release Edge
57+
# if: github.event_name == 'push'
58+
# run: ./scripts/release-edge.sh
59+
# env:
60+
# NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}

.github/workflows/ci-nuxt3.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: ci-nuxt3
2+
3+
on:
4+
push:
5+
branches:
6+
- nuxt3
7+
pull_request:
8+
branches:
9+
- nuxt3
10+
11+
jobs:
12+
ci:
13+
runs-on: ${{ matrix.os }}
14+
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest] # macos-latest, windows-latest
18+
node: [16]
19+
20+
steps:
21+
- uses: actions/setup-node@v2
22+
with:
23+
node-version: ${{ matrix.node }}
24+
25+
- name: Checkout
26+
uses: actions/checkout@master
27+
with:
28+
persist-credentials: false
29+
fetch-depth: 0
30+
31+
- name: Cache
32+
uses: actions/cache@v2
33+
with:
34+
path: node_modules
35+
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
36+
37+
- name: Dependencies
38+
if: steps.cache.outputs.cache-hit != 'true'
39+
run: yarn
40+
41+
- name: Lint
42+
run: yarn lint
43+
44+
- name: Prepare
45+
run: node ./node_modules/playwright/install.js
46+
47+
- name: Test
48+
run: yarn test
49+
50+
- name: Coverage
51+
uses: codecov/codecov-action@v2
52+
53+
- name: Build
54+
run: yarn build
55+
56+
- name: Release Edge
57+
if: github.event_name == 'push'
58+
run: ./scripts/release-edge.sh
59+
env:
60+
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}

0 commit comments

Comments
 (0)