From 1ab0b19885026a324930e8a7ffd49ec5c6c58a28 Mon Sep 17 00:00:00 2001 From: Jim O'Donnell Date: Tue, 21 May 2024 10:36:46 +0100 Subject: [PATCH] ci(frontend): build the frontend for PRs --- .github/workflows/ci-build.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/ci-build.yml diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml new file mode 100644 index 00000000..61426556 --- /dev/null +++ b/.github/workflows/ci-build.yml @@ -0,0 +1,25 @@ +name: Frontend build + +on: + pull_request: + push: + branches: + - master + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./frontend + steps: + - uses: actions/checkout@v4 + - name: Use Node.js 20.x + uses: actions/setup-node@v4 + with: + node-version: 20.x + - name: Install dependencies + run: npm ci + - name: Build + run: npm run build