Skip to content

Commit 132beef

Browse files
committed
chore(workflows): add build-check.yml
1 parent 8e302d1 commit 132beef

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/build-check.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build Check
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- "dependabot/**"
7+
pull_request:
8+
branches:
9+
- main
10+
- v4-dev
11+
schedule:
12+
- # build runs every weekday at 4:15AM UTC
13+
- cron: '15 4 * * *'
14+
15+
env:
16+
FORCE_COLOR: 2
17+
NODE: 16
18+
19+
jobs:
20+
build:
21+
strategy:
22+
matrix:
23+
platform: [ubuntu-latest, windows-latest, macOS-latest]
24+
node-version: [16.x, 18.x]
25+
runs-on: ${{ matrix.platform }}
26+
steps:
27+
- name: Clone repository
28+
uses: actions/checkout@v3
29+
30+
- name: Set up Node.js
31+
uses: actions/setup-node@v3
32+
with:
33+
node-version: ${{ env.node-version }}
34+
35+
- name: Install npm dependencies
36+
run: npm install
37+
38+
- name: Run build
39+
run: npm run build

0 commit comments

Comments
 (0)