chore: introduce restore_max_concurrency, OS exit when stuck in downl… #54
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: Go CI | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| env: | |
| GO_VERSION: "^1.24" | |
| jobs: | |
| pre-commit: | |
| name: Pre-commit Checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6.0.2 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| - name: Install Go tools | |
| run: | | |
| go install golang.org/x/tools/cmd/goimports@latest | |
| curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh \ | |
| | sh -s -- -b $(go env GOPATH)/bin v2.6.1 | |
| - name: Run pre-commit hooks | |
| uses: pre-commit/action@v3.0.1 | |
| with: | |
| extra_args: --all-files | |
| build-and-test: | |
| name: Build and Test | |
| runs-on: ubuntu-latest | |
| needs: pre-commit | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6.0.2 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| - name: Check out code | |
| uses: actions/checkout@v6.0.2 | |
| - name: Download dependencies | |
| run: go mod download | |
| - name: Build | |
| run: | | |
| mkdir -p bin | |
| go build -v -o bin/hdbbackint . | |
| - name: Run tests | |
| env: | |
| APIKEY: ${{ secrets.APIKEY }} | |
| run: go test -v -race -coverprofile=coverage.out ./tests/... |