Merge pull request #72 from Comcast/dependabot/go_modules/golang.org/… #43
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: | |
create: | |
pull_request: | |
push: | |
branches: | |
- main | |
- wip-2.0.0 | |
jobs: | |
test: | |
name: Unit Tests | |
runs-on: [ ubuntu-latest ] | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
# Setup Go | |
- name: Setup Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '1.20.x' # The Go version to download (if necessary) and use. | |
# Run gofmt on the code | |
- name: Run gofmt | |
run: gofmt -d | |
# Run unit tests for the code | |
- name: Run tests | |
run: | | |
go test -v ./... | |