Skip to content

Merge pull request #13 from semihbkgr/dependabot/go_modules/github.co… #7

Merge pull request #13 from semihbkgr/dependabot/go_modules/github.co…

Merge pull request #13 from semihbkgr/dependabot/go_modules/github.co… #7

Workflow file for this run

name: CI
on:
push:
branches:
- '**'
tags:
- 'v*'
permissions:
contents: read
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Setup
uses: actions/setup-go@v4
with:
go-version: 1.18
- name: Build
run: go build -v ./...
- name: Fmt
run: test -z $(gofmt -l .)
- name: Vet
run: go vet ./...
- name: Test
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
- name: Codecov
uses: codecov/codecov-action@v3