Skip to content

Feat/object merge

Feat/object merge #30

Workflow file for this run

name: Run tests and upload results
on:
# push:
# branches:
# - main
# paths:
# - cmd/**
# - internal/**
# - .dockerignore
# - .golangci.yml
# - go.mod
# - go.sum
pull_request:
branches:
- main
# paths:
# - cmd/**
# - internal/**
# - .dockerignore
# - .golangci.yml
# - go.mod
# - go.sum
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ["1.21.x"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: latest
args: --timeout=5m
- name: Install dependencies
run: go mod download
- name: Test with Go
run: go test ./... -json > TestResults-${{ matrix.go-version }}.json
- name: Upload Go test results
uses: actions/upload-artifact@v4
with:
name: Go-results-${{ matrix.go-version }}
path: TestResults-${{ matrix.go-version }}.json