Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

refactor: restructure and improve readability #10

refactor: restructure and improve readability

refactor: restructure and improve readability #10

Workflow file for this run

name: Lint and Test
on:
pull_request:
push:
branches:
- master
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.20.5
- name: Check out into the root
uses: actions/checkout@v3
- name: Run Lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
test:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.20.5
- name: Check out into the root
uses: actions/checkout@v3
- name: Test
run: go test -v ./... -coverprofile=cover.txt -covermode=atomic
- name: Coverage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./cover.txt