From 5b42faf7f372408376e87fa6f6d2f3fe28f10db6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A1lint=20M=C3=B3r=C3=A1sz?= Date: Thu, 12 Oct 2023 14:24:45 +0200 Subject: [PATCH] Create ci.yml --- .github/workflows/webpack.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/webpack.yml diff --git a/.github/workflows/webpack.yml b/.github/workflows/webpack.yml new file mode 100644 index 0000000..cb01bef --- /dev/null +++ b/.github/workflows/webpack.yml @@ -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