This repository has been archived by the owner on Sep 1, 2023. It is now read-only.
refactor: restructure and improve readability #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |