Skip to content

feat: create release upon tag push #minor #116

feat: create release upon tag push #minor

feat: create release upon tag push #minor #116

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
name: Lint code
runs-on: ubuntu-latest
env:
GOLANGCI_LINT_VERSION: v1.58.0
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: true
- name: Lint code
uses: golangci/golangci-lint-action@v6
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
skip-pkg-cache: true
skip-build-cache: true
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: true
- name: Unit tests
run: |
go test -v -race -gcflags=-l ./...
go test -gcflags=-l -covermode=count -coverprofile=profile.cov ./...
- name: Goveralls
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov