Add test to ensure src snapshot upload --help prints its own usage text #5155
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 Lint | |
| on: | |
| workflow_dispatch: | |
| push: | |
| env: | |
| GOPRIVATE: "github.com/sourcegraph/*" | |
| PRIVATE_TOKEN: "${{ secrets.PRIVATE_SG_ACCESS_TOKEN }}" | |
| jobs: | |
| go-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: 1.24.1 | |
| - name: Enable pulling Go modules from private sourcegraph/sourcegraph | |
| run: git config --global url."https://${PRIVATE_TOKEN}@github.com/sourcegraph/".insteadOf "https://github.com/sourcegraph/" | |
| - run: ./dev/go-lint.sh |