feat: upgrade tooling to latest standards and migrate to mongo-driver v2 #157
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: Test Branch | |
| on: | |
| push: | |
| branches: [ main ] | |
| merge_group: | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: jdx/mise-action@v3 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| check-latest: true | |
| go-version-file: go.mod | |
| - name: Setup golangci-lint cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.cache/golangci-lint | |
| key: golangci-lint-${{ runner.os }}-${{ hashFiles('**/go.mod') }} | |
| restore-keys: | | |
| golangci-lint-${{ runner.os }}-- | |
| - name: Run tidy | |
| run: make tidy && git diff --exit-code | |
| - name: Run generate | |
| run: make generate && git diff --exit-code | |
| - name: Run lint | |
| run: make lint.branch | |
| - name: Run tests | |
| run: make test |