build(deps): bump SamMorrowDrums/mcp-server-diff from 3521651bb0d3cc267a23df8d94a2a645556980a4 to 40d992e0a220e5b63378758f9a40d6a8982898d2 #9705
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: Build and Test Go Project | |
| on: [push, pull_request] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Force git to use LF | |
| # This step is required on Windows to work around go mod tidy -diff issues caused by CRLF line endings. | |
| # TODO: replace with a checkout option when https://github.com/actions/checkout/issues/226 is implemented | |
| if: runner.os == 'Windows' | |
| run: | | |
| git config --global core.autocrlf false | |
| git config --global core.eol lf | |
| - name: Check out code | |
| uses: actions/checkout@v7 | |
| - name: Build UI | |
| uses: ./.github/actions/build-ui | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: "go.mod" | |
| - name: Tidy dependencies | |
| run: go mod tidy -diff | |
| - name: Run unit tests | |
| shell: bash | |
| run: script/test | |
| - name: Build | |
| run: go build -v ./cmd/github-mcp-server |