Skip to content

Commit c81e986

Browse files
authored
Create build.yml
1 parent 5461abd commit c81e986

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/build.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build & Test
2+
on:
3+
push:
4+
branches-ignore:
5+
- gh-page
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
node-version: ['20']
14+
name: Build using Node v${{ matrix.node-version }}
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
cache: npm
23+
- run: npm install
24+
- run: npm run build
25+
- run: npm run dev
26+
env:
27+
CI: true
28+
29+
test:
30+
runs-on: ubuntu-latest
31+
strategy:
32+
matrix:
33+
node-version: ['20']
34+
name: Test using Node v${{ matrix.node-version }}
35+
steps:
36+
- name: Checkout
37+
uses: actions/checkout@v3
38+
- name: Use Node.js ${{ matrix.node-version }}
39+
uses: actions/setup-node@v3
40+
with:
41+
node-version: ${{ matrix.node-version }}
42+
cache: npm
43+
- run: npm install
44+
- run: npm run build
45+
env:
46+
CI: true

0 commit comments

Comments
 (0)