Add go.sum entries for silo-plugin-sdk #4
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: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: '1.26' | |
| - name: Configure module resolution | |
| run: | | |
| go env -w GOPROXY=direct | |
| go env -w GOPRIVATE=github.com/Silo-Server/* | |
| go env -w GONOSUMDB=github.com/Silo-Server/* | |
| - name: Reject committed local SDK replaces | |
| run: | | |
| if grep -Eq '^replace github.com/Silo-Server/silo-plugin-sdk => /' go.mod; then | |
| echo "go.mod contains a machine-local silo-plugin-sdk replace." | |
| exit 1 | |
| fi | |
| - name: Run tests | |
| env: | |
| GOWORK: off | |
| run: go test ./... |