Skip to content

Commit

Permalink
fix(ci): go tests export coverages and lint each submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
pandatix committed Nov 4, 2024
1 parent f68510e commit 338f1a1
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ jobs:

- name: Unit tests
run: |
go test ./... -run=^Test_U_ -json | tee -a gotest.json
export COVERDIR=coverages
mkdir "$COVERDIR/"
go test ./environment/deploy/... -run=^Test_U_ -coverprofile "$COVERDIR/environment.out" -json | tee -a gotest.json
go test ./install/deploy/... -run=^Test_U_ -coverprofile "$COVERDIR/install.out" -json | tee -a gotest.json
go test ./webserver/... -run=^Test_U_ -coverprofile "$COVERDIR/webserver.out" -json | tee -a gotest.json
go tool covdata textfmt -i=$COVERDIR -o cov.out
- name: Upload coverage to Coveralls
uses: shogo82148/actions-goveralls@785c9d68212c91196d3994652647f8721918ba11 # v1.9.0
Expand All @@ -70,5 +75,17 @@ jobs:
with:
go-version-file: 'go.work'

- name: go-lint
- name: Lint Webserver
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
with:
working-directory: webserver

- name: Lint Environment
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
with:
working-directory: environment/deploy

- name: Lint Install
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
with:
working-directory: install/deploy

0 comments on commit 338f1a1

Please sign in to comment.