From 8325737684ba9f24899fdaa9cfdaf341188480a1 Mon Sep 17 00:00:00 2001 From: Nitish Tiwari Date: Tue, 6 Aug 2024 15:28:58 +0530 Subject: [PATCH 1/2] update go version for CI --- .github/workflows/build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 5c95d23..b50537d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -2,7 +2,7 @@ name: Go Build and Test on: pull_request_target: - types: [opened,synchronize] + types: [opened,closed,synchronize] jobs: build: @@ -14,7 +14,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.22.4' + go-version: '1.22.5' - name: make verification run: make verifiers From 2e01e1717c41c16aa96c011a83f75deedf7cd009 Mon Sep 17 00:00:00 2001 From: Nitish Tiwari Date: Tue, 6 Aug 2024 15:40:45 +0530 Subject: [PATCH 2/2] fix build checkout flow --- .github/workflows/build.yaml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index b50537d..2978e2e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,26 +1,23 @@ name: Go Build and Test on: - pull_request_target: - types: [opened,closed,synchronize] + pull_request jobs: - build: + build-and-test: + name: Build and Test the Go code runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - + - name: Checkout the code + uses: actions/checkout@v4 - name: Set up Go uses: actions/setup-go@v4 with: go-version: '1.22.5' - - name: make verification run: make verifiers - - name: Build run: go build -v ./... - - name: Test run: go test -v ./...