Skip to content

chore(deps): bump github.com/go-chi/chi/v5 in the all group (#37) #69

chore(deps): bump github.com/go-chi/chi/v5 in the all group (#37)

chore(deps): bump github.com/go-chi/chi/v5 in the all group (#37) #69

Workflow file for this run

name: Go Test
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ "1.24", "1.25" ]
env:
GOLANGCI_LINT_VERSION: v2.7.2
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Install Go
id: install-go
uses: actions/setup-go@v6
with:
go-version: ${{ matrix.go-version }}
- name: Download dependencies
run: go mod download
if: steps.install-go.outputs.cache-hit != 'true'
- name: Run linter
uses: golangci/golangci-lint-action@v9
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
- name: Setup gotestsum
uses: gertd/action-gotestsum@v3.0.0
with:
gotestsum_version: v1.13.0
- name: Run Tests
run: gotestsum --junitfile tests.xml --format pkgname -- -cover -race ./...
- name: Test Summary
uses: test-summary/action@v2
with:
paths: "tests.xml"
if: always()
build:
runs-on: ubuntu-latest
strategy:
matrix:
os:
- darwin
- linux
- windows
arch:
- 386
- amd64
- arm
- arm64
- ppc64le
- s390x
include:
- os: linux
arch: arm
arm: 7
exclude:
- os: darwin
arch: 386
- os: darwin
arch: arm
- os: darwin
arch: ppc64le
- os: darwin
arch: s390x
- os: windows
arch: arm
- os: windows
arch: arm64
- os: windows
arch: ppc64le
- os: windows
arch: s390x
env:
GO_VERSION: "1.24"
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Install Go
id: install-go
uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
- name: Download dependencies
run: go mod download
if: steps.install-go.outputs.cache-hit != 'true'
- name: Build oapi-gen
run: GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} GOARM=${{ matrix.arm }} go build ./cmd/oapi-gen