baetyl-3167: Add device status #561
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.18 | |
- name: Checkout code | |
uses: actions/checkout@v1 | |
- name: Run unittest | |
run: make test | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./coverage.out |