Skip to content

Commit 9c34e6c

Browse files
authored
Merge pull request #20 from jonas-grgt/main
Add build CI/CD workflow
2 parents 9b5c548 + 89522a4 commit 9c34e6c

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/build.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
node-version: [18.x, 20.x]
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
cache: 'npm'
25+
- run: npm install
26+
- name: Run eslint
27+
run: npm run lint
28+
- name: Run vite build
29+
run: npm run build

0 commit comments

Comments
 (0)