Skip to content

Commit

Permalink
Add Github Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinmclean committed Nov 29, 2023
1 parent 5fb8c60 commit 6270796
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on: [push]

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.21"
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest

unit_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"

- name: Test
run: go test -short -race -covermode=atomic -coverprofile=coverage.out -coverpkg=./... ./...

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
functionalities: "fixes"

0 comments on commit 6270796

Please sign in to comment.