From 0b835453bd562f59f0fbf325162af6cb6ebf5221 Mon Sep 17 00:00:00 2001 From: Divlo Date: Mon, 13 Sep 2021 13:48:32 +0200 Subject: [PATCH] ci: disable commitlint for dependabot --- .github/workflows/Divlo.yml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Divlo.yml b/.github/workflows/Divlo.yml index 2202aeb..56ac640 100644 --- a/.github/workflows/Divlo.yml +++ b/.github/workflows/Divlo.yml @@ -26,6 +26,23 @@ jobs: - name: 'Perform CodeQL Analysis' uses: 'github/codeql-action/analyze@v1' + build: + runs-on: 'ubuntu-latest' + steps: + - uses: 'actions/checkout@v2.3.4' + + - name: 'Use Node.js' + uses: 'actions/setup-node@v2.4.0' + with: + node-version: '16.x' + cache: 'npm' + + - name: 'Install' + run: 'npm install' + + - name: 'Build' + run: 'npm run build' + lint: runs-on: 'ubuntu-latest' steps: @@ -41,6 +58,8 @@ jobs: run: 'npm install' - run: 'npm run lint:commit -- --to "${{ github.sha }}"' + if: github.actor != 'dependabot[bot]' + - run: 'npm run lint:docker' - run: 'npm run lint:editorconfig' - run: 'npm run lint:markdown' @@ -106,7 +125,7 @@ jobs: run: 'npm run test:e2e' automerge-dependabot: - needs: [analyze, lint, test-unit, test-e2e, test-lighthouse] + needs: [analyze, build, lint, test-unit, test-lighthouse, test-e2e] runs-on: 'ubuntu-latest' steps: - uses: 'fastify/github-action-merge-dependabot@v2.4.0' @@ -115,7 +134,7 @@ jobs: release: if: github.ref == 'refs/heads/master' && github.event_name == 'push' - needs: [analyze, lint, test-unit, test-e2e, test-lighthouse] + needs: [analyze, build, lint, test-unit, test-lighthouse, test-e2e] runs-on: 'ubuntu-latest' steps: - uses: 'actions/checkout@v2.3.4'