From 34673e75f3af0542cdf46d19a38e1f39435b0e5b Mon Sep 17 00:00:00 2001 From: Melle Dijkstra Date: Fri, 10 Nov 2023 19:53:03 +0100 Subject: [PATCH] Setup build action with github actions The build action should be used before merging pull-requests. It should validate if the project can be build --- .github/workflows/main.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..eb390b6 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,22 @@ +name: Build Check + +on: + pull_request: + branches: [ main ] + push: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: '18' + - name: Install dependencies + run: npm install + - name: Run build + run: npm run build