ci(deps): bump actions/setup-node from 4 to 5 #107
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: CI | |
on: | |
push: | |
branches: [ main, develop, stabilization ] | |
pull_request: | |
branches: [ main, develop, stabilization ] | |
jobs: | |
ci: | |
name: Test, Build & Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.24.x' | |
- name: Install system dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libx11-dev xorg-dev | |
- name: Cache Go modules | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cache/go-build | |
~/go/pkg/mod | |
key: ${{ runner.os }}-go-1.24.x-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go-1.24.x- | |
- name: Download dependencies | |
run: go mod download | |
- name: Verify dependencies | |
run: go mod verify | |
- name: Run tests | |
run: go test -v -race ./... | |
- name: Run linting | |
uses: golangci/golangci-lint-action@v7 | |
with: | |
version: latest | |
args: --timeout=5m | |
- name: Build binary | |
run: | | |
mkdir -p dist | |
go build -ldflags="-s -w" -o dist/mcp-hub ./main.go | |
- name: Upload build artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: mcp-hub | |
path: dist/mcp-hub |