Create ci.yml

This commit is contained in:
2023-10-12 14:24:45 +02:00
committed by GitHub
parent d99a3f4335
commit 5b42faf7f3
+33
View File
@@ -0,0 +1,33 @@
name: NodeJS with Webpack
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: install deps
run: |
yarn install --frozen-lockfiles
- name: unit tests
run: |
yarn test
- name: Build
run: |
yarn build