github.com/instill-ai/component@v0.16.0-beta/.github/workflows/test-compogen.yml (about) 1 name: Compogen test 2 3 on: 4 pull_request: 5 paths: 6 - 'tools/compogen/**' 7 push: 8 branches: 9 - main 10 paths: 11 - 'tools/compogen/**' 12 13 jobs: 14 test-compogen: 15 name: test-compogen 16 runs-on: ubuntu-latest 17 steps: 18 - uses: actions/checkout@v3 19 with: 20 token: ${{ secrets.GITHUB_TOKEN }} 21 22 - name: Load .env file 23 uses: cardinalby/export-env-action@v2 24 with: 25 envFile: .env 26 expand: true 27 28 - uses: actions/setup-go@v3 29 with: 30 go-version: ${{ env.GOLANG_VERSION }} 31 32 - name: Test compogen 33 run: | 34 cd tools/compogen 35 go mod tidy 36 go test -mod=mod -race -cover ./...