refactor(component,compogen): refactor baed on new period rule #38
Workflow file for this run
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: Compogen test | |
on: | |
pull_request: | |
paths: | |
- "pkg/component/tools/compogen/**" | |
push: | |
branches: | |
- main | |
paths: | |
- "pkg/component/tools/compogen/**" | |
jobs: | |
test-compogen: | |
name: Test Compogen | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Load .env file | |
uses: cardinalby/export-env-action@v2 | |
with: | |
envFile: .env | |
expand: true | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ env.GOLANG_VERSION }} | |
- name: Test compogen | |
run: | | |
cd pkg/component/tools/compogen | |
go mod tidy | |
go test -mod=mod -race -cover ./... |