diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b8ffb58..9252d1c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -52,7 +52,12 @@ jobs: fi - name: Setup CTFd - run: go run cmd/ctfd-setup/main.go + run: | + go build -cover -o ctfd-setup cmd/ctfd-setup/main.go + mkdir coverdir + GOCOVERDIR=coverdir ./ctfd-setup + go tool covdata textfmt -i=coverdir -o cov.out + sed -i '/^\//d' cov.out env: URL: http://localhost:8000 APPEARANCE_NAME: 'CTFer.io' @@ -61,6 +66,11 @@ jobs: ADMIN_EMAIL: 'ctfer-io@protonmail.com' ADMIN_PASSWORD: 'ctfer' + - name: Upload coverage to Coveralls + uses: shogo82148/actions-goveralls@785c9d68212c91196d3994652647f8721918ba11 # v1.9.0 + with: + path-to-profile: cov.out + go-lint: runs-on: ubuntu-latest steps: diff --git a/README.md b/README.md index 076320d..97caca2 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,9 @@