tests: use testing helpers for env and cleanup (#992) #3463
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 Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: {} | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '^1.20' | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup golangci-lint | |
uses: golangci/[email protected] | |
- name: Verify Codegen | |
run: make verify-codegen | |
- name: Run tests with Coverage | |
run: make coverage | |
- name: Upload Code Coverage | |
uses: codecov/codecov-action@v3 | |
with: | |
name: codecov-deck | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: true | |
- name: Build | |
run: make build |