feat: add --branch flag to override worktree/branch name #995
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 | |
| on: | |
| push: | |
| branches: | |
| tags: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - name: set up go 1.26 | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: "1.26" | |
| id: go | |
| - name: build and test | |
| run: | | |
| go test -race -timeout=100s -covermode=atomic -coverprofile=$GITHUB_WORKSPACE/profile.cov_tmp ./... | |
| grep -v -E "_mock.go|/mocks/" $GITHUB_WORKSPACE/profile.cov_tmp > $GITHUB_WORKSPACE/profile.cov | |
| - name: test docker wrapper script | |
| run: python3 scripts/ralphex-dk.sh --test | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@v9 | |
| with: | |
| version: latest | |
| - name: install goveralls | |
| run: go install github.com/mattn/goveralls@latest | |
| - name: submit coverage | |
| run: $(go env GOPATH)/bin/goveralls -service="github" -coverprofile=$GITHUB_WORKSPACE/profile.cov | |
| env: | |
| COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} |