From fa15a5d5c59dcba056c9e075dcf0d824b1bd682c Mon Sep 17 00:00:00 2001 From: Chinmay Vivek Date: Sat, 16 Nov 2024 21:59:53 +0530 Subject: [PATCH] [UPDT]: workflow updated --- .github/workflows/go.yml | 28 ---------------------------- .github/workflows/validate_pr.yaml | 6 +++++- 2 files changed, 5 insertions(+), 29 deletions(-) delete mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml deleted file mode 100644 index 0b443f3..0000000 --- a/.github/workflows/go.yml +++ /dev/null @@ -1,28 +0,0 @@ -# This workflow will build a golang project -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go - -name: Go - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: '1.20' - - - name: Build - run: go build -v ./... - - - name: Test - run: go test -v ./... diff --git a/.github/workflows/validate_pr.yaml b/.github/workflows/validate_pr.yaml index 69e2f12..7863007 100644 --- a/.github/workflows/validate_pr.yaml +++ b/.github/workflows/validate_pr.yaml @@ -1,6 +1,10 @@ name: Validate Pull Request -on: pull_request +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] env: GO_VERSION_FILE: 'go.mod'