Skip to content

fix workflow

fix workflow #2

Workflow file for this run

name: Unit Test
on:
push:
branches-ignore:
- main
pull_request:
- main
workflow_call:
jobs:
tests:

Check failure on line 11 in .github/workflows/unittest.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/unittest.yml

Invalid workflow file

You have an error in your yaml syntax on line 11
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get go version from go.mod
run: |
echo "GO_VERSION=$(grep '^go ' go.mod | cut -d " " -f 2)" >> $GITHUB_ENV
- uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: Install dependencies
run: |
go install github.com/golang/mock/[email protected]
- name: Generate Mocks
run: |
make mocks
- name: Test with go
run: |
make coverage
# - name: Upload unit coverage to Codecov
# uses: codecov/codecov-action@v3
# with:
# token: ${{secrets.CODECOV_TOKEN}}
# flags: unit
# files: coverage.cov
# verbose: false