diff --git a/.github/workflows/build_and_unit_test.yml b/.github/workflows/build_and_unit_test.yml deleted file mode 100644 index f3fd512..0000000 --- a/.github/workflows/build_and_unit_test.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: build_and_unit_test - -on: - push: - branches: [ test-ci ] - pull_request: - branches: [ master ] - types: [ opened, synchronize, reopened, edited, ready_for_review ] - -jobs: - - build_and_unit_test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - path: go/src/github.com/cloudberrydb/gpbackup - - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: 1.17 - - - name: Set Environment - run: | - pwd - go env - echo "GOPATH=/home/runner/work/gpbackup/gpbackup/go" >> $GITHUB_ENV - echo "/home/runner/work/gpbackup/gpbackup/go/bin" >> $GITHUB_PATH - pwd - go env - - name: Dependencies - run: | - cd /home/runner/work/gpbackup/gpbackup/go/src/github.com/cloudberrydb/gpbackup - pwd - go env - make depend - - - name: Build - run: | - cd /home/runner/work/gpbackup/gpbackup/go/src/github.com/cloudberrydb/gpbackup - make build - - - name: Unit Test - run: | - cd /home/runner/work/gpbackup/gpbackup/go/src/github.com/cloudberrydb/gpbackup - make unit_all_gpdb_versions diff --git a/.github/workflows/build_ci.yml b/.github/workflows/build_ci.yml new file mode 100644 index 0000000..e51832c --- /dev/null +++ b/.github/workflows/build_ci.yml @@ -0,0 +1,23 @@ +name: build_and_unit_test + +on: + push: + branches: [ test-ci ] + pull_request: + branches: [ master ] + types: [ opened, synchronize, reopened, edited, ready_for_review ] + +jobs: + + build_and_unit_test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.17 + + - name: Set Environment + run: go get github.com/cloudberrydb/gpbackup/...