Skip to content

Commit

Permalink
Update build_and_unit_test.yml
Browse files Browse the repository at this point in the history
  To ensure that compilation and testing are automated, you can
modify the workflow related files. By doing so, you can streamline
the process and save time by eliminating the need for manual
intervention. This can also reduce the chances of human error
and ensure consistency in the results.
  • Loading branch information
Baowen648 committed Dec 12, 2023
1 parent 60f3393 commit d64a45a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build_and_unit_test.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: build_and_unit_test
name: gpbackup_go_build_and_test

on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
branches: [ master ]
branches: [ main ]
types: [ opened, synchronize, reopened, edited, ready_for_review ]

jobs:
Expand All @@ -15,12 +15,12 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
path: go/src/github.com/cloudberrydb/gpbackup
path: go/pkg/mod/github.com/cloudberrydb/gpbackup

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.21.4

- name: Set Environment
run: |
Expand All @@ -29,15 +29,15 @@ jobs:
- name: Dependencies
run: |
cd ${GOPATH}/src/github.com/cloudberrydb/gpbackup
cd ${GOPATH}/pkg/mod/github.com/cloudberrydb/gpbackup
make depend
- name: Build
run: |
cd ${GOPATH}/src/github.com/cloudberrydb/gpbackup
cd ${GOPATH}/pkg/mod/github.com/cloudberrydb/gpbackup
make build
- name: Unit Test
run: |
cd ${GOPATH}/src/github.com/cloudberrydb/gpbackup
make unit_all_gpdb_versions
cd ${GOPATH}/pkg/mod/github.com/cloudberrydb/gpbackup
make test

0 comments on commit d64a45a

Please sign in to comment.