build: releaser building go libs in wrong dir #12
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: ci | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| go-checks: | |
| name: go-checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| - uses: jdx/mise-action@c37c93293d6b742fc901e1406b8f764f6fb19dac # v2 | |
| - name: Cache Go modules and build cache | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 | |
| with: | |
| path: | | |
| ~/go/pkg/mod | |
| ~/.cache/go-build | |
| key: ${{ runner.os }}-go-${{ hashFiles('control-plane/go.sum') }} | |
| restore-keys: | | |
| ${{ runner.os }}-go- | |
| - name: go vet | |
| run: mise run vet | |
| - name: go fix (check for drift) | |
| run: mise run fix | |
| - name: golangci-lint | |
| run: mise run lint | |
| - name: release image contract | |
| run: mise run release:image-contract | |
| - name: go test | |
| run: mise run test:ci | |
| - name: Upload coverage | |
| if: always() | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 | |
| with: | |
| name: go-coverage | |
| path: control-plane/coverage.out |