From 2aed204b272a330a4c77706fb3f0f52c1ae6e162 Mon Sep 17 00:00:00 2001 From: Kilian Ciuffolo <385716+kilianc@users.noreply.github.com> Date: Mon, 20 May 2024 00:33:37 -0700 Subject: [PATCH 01/11] chore: track code coverage in PRs --- .github/workflows/tests.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 09787968a3c..0b2d9bbaec0 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -17,6 +17,8 @@ jobs: steps: - uses: actions/checkout@v3 - name: Get dependencies - run: go get -v -t -d ./... + run: go get -v -t -d -coverprofile=cover.out ./... + - name: Go Beautiful HTML Coverage + uses: gha-common/go-beautiful-html-coverage@v1 - name: Run tests run: go test main_test.go main.go From 966d560d1f1a10cb8e29d7156c50d05d1be94c3c Mon Sep 17 00:00:00 2001 From: Kilian Ciuffolo <385716+kilianc@users.noreply.github.com> Date: Mon, 20 May 2024 00:35:24 -0700 Subject: [PATCH 02/11] Update tests.yaml --- .github/workflows/tests.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 0b2d9bbaec0..7ce73138a34 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -17,8 +17,8 @@ jobs: steps: - uses: actions/checkout@v3 - name: Get dependencies - run: go get -v -t -d -coverprofile=cover.out ./... + run: go get -v -t -d ./... + - name: Run tests + run: go test -coverprofile=cover.out main_test.go main.go - name: Go Beautiful HTML Coverage uses: gha-common/go-beautiful-html-coverage@v1 - - name: Run tests - run: go test main_test.go main.go From 9cb2d34f706d1577495de324dc8292d348cb3840 Mon Sep 17 00:00:00 2001 From: Kilian Ciuffolo <385716+kilianc@users.noreply.github.com> Date: Mon, 20 May 2024 00:41:32 -0700 Subject: [PATCH 03/11] Update tests.yaml --- .github/workflows/tests.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 7ce73138a34..4a08c401c69 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -20,5 +20,7 @@ jobs: run: go get -v -t -d ./... - name: Run tests run: go test -coverprofile=cover.out main_test.go main.go + - name: Install Vim + run: apt-get update; apt-get install -y vim; - name: Go Beautiful HTML Coverage uses: gha-common/go-beautiful-html-coverage@v1 From 072b370598f3689967dea57d0b06bdc1ddaf6ac7 Mon Sep 17 00:00:00 2001 From: Kilian Ciuffolo <385716+kilianc@users.noreply.github.com> Date: Wed, 22 May 2024 18:36:58 -0700 Subject: [PATCH 04/11] Update tests.yaml --- .github/workflows/tests.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 4a08c401c69..97c13f0978d 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -7,7 +7,8 @@ on: pull_request: permissions: - contents: read # to fetch code (actions/checkout) + pull-requests: write # required for posting comments + contents: write # required for git push jobs: build: From f6060a3c0733409fe275e50af517457bd31d771e Mon Sep 17 00:00:00 2001 From: Kilian Ciuffolo <385716+kilianc@users.noreply.github.com> Date: Sat, 25 May 2024 07:23:52 -0700 Subject: [PATCH 05/11] Update tests.yaml --- .github/workflows/tests.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 97c13f0978d..fa04baf2905 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -17,11 +17,20 @@ jobs: container: golang:latest steps: - uses: actions/checkout@v3 + - name: Verify Changed files + id: verify-changed-files + uses: tj-actions/verify-changed-files@v20 + with: + files: "!*.md" - name: Get dependencies + if: steps.verify-changed-files.outputs.files_changed == 'true' run: go get -v -t -d ./... - name: Run tests + if: steps.verify-changed-files.outputs.files_changed == 'true' run: go test -coverprofile=cover.out main_test.go main.go - name: Install Vim + if: steps.verify-changed-files.outputs.files_changed == 'true' run: apt-get update; apt-get install -y vim; - name: Go Beautiful HTML Coverage + if: steps.verify-changed-files.outputs.files_changed == 'true' uses: gha-common/go-beautiful-html-coverage@v1 From 9d390bc89d52097a67c585a5c7106d7860b5f39d Mon Sep 17 00:00:00 2001 From: Kilian Ciuffolo <385716+kilianc@users.noreply.github.com> Date: Sat, 25 May 2024 07:35:28 -0700 Subject: [PATCH 06/11] Update tests.yaml --- .github/workflows/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index fa04baf2905..931c2216b91 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -21,7 +21,7 @@ jobs: id: verify-changed-files uses: tj-actions/verify-changed-files@v20 with: - files: "!*.md" + files: !*.md - name: Get dependencies if: steps.verify-changed-files.outputs.files_changed == 'true' run: go get -v -t -d ./... From 678f005e0070df0609540777777156c8f9bf3083 Mon Sep 17 00:00:00 2001 From: Kilian Ciuffolo <385716+kilianc@users.noreply.github.com> Date: Sat, 25 May 2024 07:36:47 -0700 Subject: [PATCH 07/11] Update tests.yaml --- .github/workflows/tests.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 931c2216b91..7b5be143058 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -21,7 +21,8 @@ jobs: id: verify-changed-files uses: tj-actions/verify-changed-files@v20 with: - files: !*.md + files: | + !*.md - name: Get dependencies if: steps.verify-changed-files.outputs.files_changed == 'true' run: go get -v -t -d ./... From d868fcf93d381005d7367b896294104bb4c5e480 Mon Sep 17 00:00:00 2001 From: Kilian Ciuffolo <385716+kilianc@users.noreply.github.com> Date: Mon, 27 May 2024 21:58:48 -0700 Subject: [PATCH 08/11] Update .github/workflows/tests.yaml --- .github/workflows/tests.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 7b5be143058..8931644ce19 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -27,7 +27,6 @@ jobs: if: steps.verify-changed-files.outputs.files_changed == 'true' run: go get -v -t -d ./... - name: Run tests - if: steps.verify-changed-files.outputs.files_changed == 'true' run: go test -coverprofile=cover.out main_test.go main.go - name: Install Vim if: steps.verify-changed-files.outputs.files_changed == 'true' From f68f7356f65b66349ae277b9479b0734a19a08b1 Mon Sep 17 00:00:00 2001 From: Kilian Ciuffolo <385716+kilianc@users.noreply.github.com> Date: Mon, 27 May 2024 21:59:04 -0700 Subject: [PATCH 09/11] Update .github/workflows/tests.yaml --- .github/workflows/tests.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 8931644ce19..33bae916a94 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -24,7 +24,6 @@ jobs: files: | !*.md - name: Get dependencies - if: steps.verify-changed-files.outputs.files_changed == 'true' run: go get -v -t -d ./... - name: Run tests run: go test -coverprofile=cover.out main_test.go main.go From 7053e609d1af5139c0e8d655a6f180dd4635f3ec Mon Sep 17 00:00:00 2001 From: Kilian Ciuffolo <385716+kilianc@users.noreply.github.com> Date: Sat, 1 Jun 2024 11:03:11 -0700 Subject: [PATCH 10/11] Update .github/workflows/tests.yaml --- .github/workflows/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 33bae916a94..23d823f2daa 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -7,7 +7,7 @@ on: pull_request: permissions: - pull-requests: write # required for posting comments + pull-requests: write # required for posting comments (test) contents: write # required for git push jobs: From 1cf1ff7ddc6ed9c2a351047b18e3bccd8c7a129c Mon Sep 17 00:00:00 2001 From: Kilian Ciuffolo <385716+kilianc@users.noreply.github.com> Date: Sat, 1 Jun 2024 11:06:08 -0700 Subject: [PATCH 11/11] Update tests.yaml --- .github/workflows/tests.yaml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 23d823f2daa..33393626001 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -17,19 +17,11 @@ jobs: container: golang:latest steps: - uses: actions/checkout@v3 - - name: Verify Changed files - id: verify-changed-files - uses: tj-actions/verify-changed-files@v20 - with: - files: | - !*.md - name: Get dependencies run: go get -v -t -d ./... - name: Run tests run: go test -coverprofile=cover.out main_test.go main.go - name: Install Vim - if: steps.verify-changed-files.outputs.files_changed == 'true' run: apt-get update; apt-get install -y vim; - name: Go Beautiful HTML Coverage - if: steps.verify-changed-files.outputs.files_changed == 'true' uses: gha-common/go-beautiful-html-coverage@v1