add webpack test-build on pr and push

This commit is contained in:
Send_Nukez 2021-11-03 14:03:28 +01:00
parent 294e69b3d8
commit 9a47d3bbfc

28
.github/workflows/webpack-test.yml vendored Normal file
View file

@ -0,0 +1,28 @@
name: Webpack Test
on:
pull_request:
push:
branches:
- main
jobs:
webpack:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "14"
- name: Test-Build Webpack
run: |
npm install
npm run build
echo "${{ github.event.inputs.version }}" > dist/VERSION