Skip to content

Merge pull request #320 from h1177h/pr/marketplace-registry-server-clean #751

Merge pull request #320 from h1177h/pr/marketplace-registry-server-clean

Merge pull request #320 from h1177h/pr/marketplace-registry-server-clean #751

Workflow file for this run

name: Test
on:
push:
branches:
- "**"
- "!dependabot/**"
- "!xgopilot/**"
pull_request:
branches: [ "**" ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
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.26.x
cache: false
- name: Lint Go code
run: go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.11.4 run ./... --timeout=5m
test:
runs-on: ubuntu-latest
strategy:
matrix:
go:
- 1.25.x
- 1.26.x
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
cache: false
- name: Download Go modules
run: go mod download
- name: Test Go code
run: go test -v -race -covermode atomic -coverprofile coverage.out ./...
- name: Upload code coverage
uses: codecov/codecov-action@v5
with:
token: ${{secrets.CODECOV_TOKEN}}
disable_search: true
files: coverage.out