Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update build_and_unit_test.yml for gpbackup workflow #5

Merged
merged 1 commit into from
Jan 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/build_and_unit_test.yml
tuhaihe marked this conversation as resolved.
Show resolved Hide resolved
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
Loading