From c289f7c98d21ec7d9b7b9ceeea6e370e41e73b95 Mon Sep 17 00:00:00 2001 From: Esteban Borai Date: Wed, 15 May 2024 12:23:51 -0400 Subject: [PATCH] chore(ci): setup ci workflow for build integrity --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..bca72abb --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: Continuous Integration + +on: + pull_request: + branches: [main] + +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' + cancel-in-progress: true + +jobs: + integrity: + name: Integrity Checks + runs-on: ubuntu-latest + permissions: + contents: write + deployments: write + steps: + - name: Checkout Source + uses: actions/checkout@v4 + with: + ref: ${{ github.ref }} + + - name: Setup NodeJS + uses: actions/setup-node@v4 + + - name: Install Dependencies + run: npm ci + + - name: Build for Production + env: + NODE_ENV: production + run: npm run build