fix: updating deps #184
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: Build and Test | |
# This workflow will run on master branch and on any pull requests targeting master | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- 'docs/**' | |
- 'src_docs/**' | |
- '.github/**' | |
pull_request: | |
jobs: | |
#lint: | |
# name: Lint | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Set up Go | |
# uses: actions/setup-go@v2 | |
# with: | |
# go-version: 1.18 | |
# | |
# - name: Check out code | |
# uses: actions/checkout@v2 | |
# | |
# - name: Lint Go Code | |
# run: | | |
# go get -u golang.org/x/lint/golint | |
# make lint | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.19 | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Run Unit tests. | |
run: make test-coverage | |
- name: Upload Coverage report to CodeCov | |
uses: codecov/codecov-action@v1.0.0 | |
with: | |
token: ${{secrets.CODECOV_TOKEN}} | |
file: ./coverage.txt | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
needs: [test] | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.19 | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Build | |
run: make build |