Skip to content

Merge pull request #9 from vmyroslav/dependabot/github_actions/action… #34

Merge pull request #9 from vmyroslav/dependabot/github_actions/action…

Merge pull request #9 from vmyroslav/dependabot/github_actions/action… #34

Workflow file for this run

name: Lint and Test
on:
push:
branches:
- main
pull_request:
env:
GO_VERSION: 1.19
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Checkout code
uses: actions/checkout@v4
- name: Lint
uses: golangci/golangci-lint-action@v3
- name: Test
run: |
go test -timeout=60s -race -covermode=atomic -coverprofile=$GITHUB_WORKSPACE/profile.cov ./...
- name: Submit coverage
uses: codecov/codecov-action@v3
with:
files: ./profile.cov
slug: ${{ env.GITHUB_REPOSITORY }}