Merge pull request #103 from qbarrand/dependabot/go_modules/golang.or… #313
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: CI | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: 1.19 | |
- name: Build | |
run: go build | |
unit-test: | |
name: Unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: 1.19 | |
- name: Run unit tests | |
run: go test ./... -coverprofile cover.out | |
- name: Upload the coverage to Codecov | |
uses: codecov/codecov-action@v3 |