toshimaru/nyan

View on GitHub
.github/workflows/coverage.yml

Summary

Maintainability
Test Coverage
name: Coverage with CodeClimate
on:
  push:
    branches:
      - 'main'
  pull_request:
jobs:
  codeclimate-report:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-go@v5
        with:
          go-version: '1.22'
      - run: go build
      - uses: paambaati/codeclimate-action@v6.0.0
        env:
          CC_TEST_REPORTER_ID: f4c78effd3a10a5a45239e6886b35f42475467ad53f09a01002feeb04eb92d5b
        with:
          coverageCommand: go test ./... -coverprofile c.out
          prefix: github.com/toshimaru/nyan