Skip to content

Commit 1f7551e

Browse files
authored
add CI workflow (#989)
This will run the build script as a minimum to make sure that the build script itself works. This doesn't verify the output yet. However, this should prevent version bumps in packages with a different API to be (auto) merged.
1 parent 4649df5 commit 1f7551e

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/CI.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
permissions:
10+
contents: read
11+
12+
env:
13+
CI: true
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
19+
strategy:
20+
matrix:
21+
node-version: [18]
22+
23+
steps:
24+
- uses: actions/checkout@v3
25+
26+
- name: Use Node.js ${{ matrix.node-version }}
27+
uses: actions/setup-node@v3
28+
with:
29+
node-version: ${{ matrix.node-version }}
30+
registry-url: 'https://registry.npmjs.org'
31+
32+
- name: Use cached node_modules
33+
uses: actions/cache@v3
34+
with:
35+
path: node_modules
36+
key: ${{ runner.os }}-${{ matrix.node-version }}-node_modules-${{ hashFiles('**/package-lock.json') }}
37+
38+
- name: Install dependencies
39+
run: npm install
40+
41+
- name: Build
42+
run: npm run build

0 commit comments

Comments
 (0)