Add a local Docker image build command in Makefile #1144
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: unittest | |
on: pull_request | |
jobs: | |
test: | |
name: unittest | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.20 | |
- name: Checkout code | |
uses: actions/checkout@v1 | |
- name: Build | |
run: make all | |
- name: Run unittest | |
run: make test | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./coverage.txt |