From 09c43a3d176c9b1e3f10a5ea0c9f08e376979850 Mon Sep 17 00:00:00 2001 From: Guusvanmeerveld Date: Tue, 22 Mar 2022 16:26:31 +0100 Subject: [PATCH] Added extra run to Github actions --- .github/workflows/deploy.yml | 28 ++++++++++++++++++++++++---- next.config.js | 3 +++ 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 17696fd..848a4ad 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,15 +6,34 @@ on: - master jobs: - build: + test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: Setup + uses: actions/checkout@v2 - - name: Use Node.js + - name: Setup Node.js uses: actions/setup-node@v1 with: - node-version: "16.6.0" + node-version: "12.x" + + - name: Install npm dependencies + run: yarn install + + - name: Lint + run: yarn lint + + deploy: + runs-on: ubuntu-latest + needs: test + steps: + - name: Setup + uses: actions/checkout@v2 + + - name: Setup Node.js + uses: actions/setup-node@v1 + with: + node-version: "12.x" - name: Install npm dependencies run: yarn install @@ -23,6 +42,7 @@ jobs: run: yarn run export env: NODE_ENV: production + NEXT_TELEMETRY_DISABLED: 1 - name: Deploy to pages uses: peaceiris/actions-gh-pages@v3 diff --git a/next.config.js b/next.config.js index 7f211cf..76eb6f9 100644 --- a/next.config.js +++ b/next.config.js @@ -6,5 +6,8 @@ module.exports = { reactStrictMode: true, experimental: { emotion: true + }, + eslint: { + ignoreDuringBuilds: true } };