From 1511757844ef0a5b2ccc28a16cd24b445cd80e4d Mon Sep 17 00:00:00 2001 From: garrettladley Date: Thu, 1 Feb 2024 01:28:28 -0500 Subject: [PATCH] ghwf debugging --- .github/workflows/auto_assign_author.yml | 4 ++++ .github/workflows/auto_request_review.yml | 3 +++ .github/workflows/backend.yml | 6 +++--- .github/workflows/codeql.yml | 4 ++++ 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/auto_assign_author.yml b/.github/workflows/auto_assign_author.yml index 5ac4a7936..a92a9c3f4 100644 --- a/.github/workflows/auto_assign_author.yml +++ b/.github/workflows/auto_assign_author.yml @@ -4,6 +4,10 @@ on: pull_request: types: [opened, ready_for_review, reopened] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: auto-add-assignee: runs-on: ubuntu-latest diff --git a/.github/workflows/auto_request_review.yml b/.github/workflows/auto_request_review.yml index 78f14dcf8..e38f94b42 100644 --- a/.github/workflows/auto_request_review.yml +++ b/.github/workflows/auto_request_review.yml @@ -4,6 +4,9 @@ on: pull_request: types: [opened, ready_for_review, reopened] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: auto-request-review: runs-on: ubuntu-latest diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 6338f1956..4fa26b0ba 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -27,15 +27,15 @@ jobs: uses: actions/setup-go@v3 with: go-version: "1.21" + - name: Install gofumpt + run: go install mvdan.cc/gofumpt@latest - name: Check code formatting run: | - go install mvdan.cc/gofumpt@latest unformatted_files=$(gofumpt -l ./backend/ 2>/dev/null | grep ".go$") - echo "$unformatted_files" if [ -n "$unformatted_files" ]; then echo "Files not formatted:" echo "$unformatted_files" - exit 0 + exit 1 fi lint: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index e4809cde4..c8a51aadf 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -18,6 +18,10 @@ on: schedule: - cron: "0 0 * * 1" +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: analyze-js-ts: name: Analyze JavaScript and TypeScript