Skip to content

Code Refactoring

Code Refactoring #30

Workflow file for this run

name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master, dependency-upgrades ]
jobs:
build:
runs-on: ubuntu-22.04
env:
GO111MODULE: on
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.20.x
- name: Install depedencies
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Build
run: go build -v ./...
- name: Test
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic
- name: Staticcheck
run: staticcheck ./...
- name: Send coverage
run: bash <(curl -s https://codecov.io/bash)