From 829df8f09b3533c923f0545ff60250da24a6b968 Mon Sep 17 00:00:00 2001 From: Malachi Soord Date: Sat, 3 Feb 2024 09:38:11 +0100 Subject: [PATCH] Update pipelines --- .github/workflows/build.yml | 20 ++++++++++++++++++++ .github/workflows/deploy.yml | 4 ++-- .github/workflows/format.yml | 2 +- 3 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..5335689 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,20 @@ +name: Build +on: [push, pull_request] +jobs: + lint: + name: Check formatting + runs-on: ubuntu-latest + steps: + - name: Checkout the repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' + + - name: Install dependencies + run: npm ci + + - name: build + run: npm run build diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 11efd7c..f8e8333 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -12,8 +12,8 @@ jobs: steps: - uses: actions/checkout@v4 - - name: install - run: npm i --legacy-peer-deps + - name: Install dependencies + run: npm ci - name: build run: npm run build diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 01c9afa..a2eddc5 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -14,7 +14,7 @@ jobs: node-version-file: '.nvmrc' - name: Install dependencies - run: npm install + run: npm ci - name: Check formatting run: |