Bump Go from 1.24 to 1.25 #219
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build_and_unit_test | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| types: [ opened, synchronize, reopened, edited, ready_for_review ] | |
| workflow_dispatch: | |
| jobs: | |
| build_and_unit_test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| path: go/src/github.com/apache/cloudberry-backup | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.25" | |
| - name: Set Environment | |
| run: | | |
| echo "GOPATH=${GITHUB_WORKSPACE}/go" >> $GITHUB_ENV | |
| echo "${GITHUB_WORKSPACE}/go/bin" >> $GITHUB_PATH | |
| - name: Dependencies | |
| run: | | |
| cd ${GOPATH}/src/github.com/apache/cloudberry-backup | |
| make depend | |
| - name: Build | |
| run: | | |
| cd ${GOPATH}/src/github.com/apache/cloudberry-backup | |
| make build | |
| - name: Smoke Test | |
| run: | | |
| set -euo pipefail | |
| cd ${GOPATH}/src/github.com/apache/cloudberry-backup | |
| echo "Running smoke tests..." | |
| echo "=== Testing gpbackup ===" | |
| ${GOPATH}/bin/gpbackup --version | |
| ${GOPATH}/bin/gpbackup --help > /dev/null | |
| echo "=== Testing gprestore ===" | |
| ${GOPATH}/bin/gprestore --version | |
| ${GOPATH}/bin/gprestore --help > /dev/null | |
| echo "=== Testing gpbackup_helper ===" | |
| ${GOPATH}/bin/gpbackup_helper --version | |
| ${GOPATH}/bin/gpbackup_helper --help > /dev/null | |
| echo "=== Testing gpbackup_s3_plugin ===" | |
| ${GOPATH}/bin/gpbackup_s3_plugin --version | |
| ${GOPATH}/bin/gpbackup_s3_plugin --help > /dev/null | |
| echo "=== Testing gpbackman ===" | |
| ${GOPATH}/bin/gpbackman --version | |
| ${GOPATH}/bin/gpbackman --help > /dev/null | |
| echo "=== Testing gpbackup_exporter ===" | |
| ${GOPATH}/bin/gpbackup_exporter --version | |
| ${GOPATH}/bin/gpbackup_exporter --help > /dev/null | |
| echo "=== All smoke tests passed ===" | |
| - name: Unit Test | |
| run: | | |
| cd ${GOPATH}/src/github.com/apache/cloudberry-backup | |
| make unit_all_gpdb_versions |