go get github.com/sourcegraph/mountinfo@main (#992) #3485
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
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| name: CI | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| container: alpine:edge # latest go pls | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v3 | |
| - name: add dependencies | |
| run: apk add go git tar | |
| - name: Cache ctags | |
| uses: actions/cache@v3 | |
| with: | |
| path: /usr/local/bin/universal-ctags | |
| key: ${{ runner.os }}-ctags-${{ hashFiles('install-ctags-alpine.sh') }} | |
| - name: Cache Go modules | |
| uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.cache/go-build | |
| ~/go/pkg/mod | |
| key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
| restore-keys: | | |
| ${{ runner.os }}-go- | |
| - name: install ctags | |
| run: | | |
| if [ ! -f /usr/local/bin/universal-ctags ]; then | |
| ./install-ctags-alpine.sh | |
| fi | |
| - name: test | |
| run: go test ./... | |
| fuzz-test: | |
| name: fuzz test | |
| runs-on: ubuntu-latest | |
| container: alpine:edge | |
| steps: | |
| - name: add dependencies | |
| run: apk add bash go | |
| - uses: jidicula/go-fuzz-action@2d8b802597c47a79764d83dabc27fb672f2fb8d9 | |
| with: | |
| packages: 'github.com/sourcegraph/zoekt' # This is the package where the Protobuf round trip tests are defined | |
| fuzz-time: 30s | |
| fuzz-minimize-time: 1m | |
| go-version: '1.23' | |
| shellcheck: | |
| name: shellcheck | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Run ShellCheck | |
| uses: ludeeus/[email protected] | |
| shfmt: | |
| name: shfmt | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: reviewdog/[email protected] | |
| with: | |
| filter_mode: "nofilter" | |
| fail_on_error: "true" | |
| shfmt_flags: "-i 2 -ci -bn" | |
| lint-protos: | |
| name: "buf lint" | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Run `git checkout` | |
| - uses: actions/checkout@v2 | |
| # Install the `buf` CLI | |
| - uses: bufbuild/buf-setup-action@v1 | |
| with: | |
| github_token: ${{ secrets.GH_TOKEN }} | |
| # Lint your Protobuf sources | |
| - run: .github/workflows/buf-lint-check.sh | |
| format-protos: | |
| name: "buf format" | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Run `git checkout` | |
| - uses: actions/checkout@v2 | |
| # Install the `buf` CLI | |
| - uses: bufbuild/buf-setup-action@v1 | |
| with: | |
| github_token: ${{ secrets.GH_TOKEN }} | |
| # Check to see if the Protobuf sources are formatted | |
| - run: .github/workflows/buf-format-check.sh | |
| generate-protos: | |
| name: "buf generate" | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Run `git checkout` | |
| - uses: actions/checkout@v2 | |
| # Install the `buf` CLI | |
| - uses: bufbuild/buf-setup-action@v1 | |
| with: | |
| github_token: ${{ secrets.GH_TOKEN }} | |
| # Check if the generated code is up-to-date | |
| - run: .github/workflows/buf-generate-check.sh | |