MasatoMakino/tweenable-color

View on GitHub
.github/workflows/Coverage.yml

Summary

Maintainability
Test Coverage
name: Coverage Report

on:
  pull_request:
    branches:
      - main
    types: [closed]

jobs:
  report:
    runs-on: ubuntu-22.04
    if: github.event.pull_request.merged == true
    steps:
      - uses: actions/checkout@v4
      - name: Use Node.js
        uses: actions/setup-node@v4
        with:
          node-version: "20"
          cache: "npm"
      - run: npm ci
      - run: npm run buildTS -- --noEmit
      - name: Code Climate Coverage Action
        uses: paambaati/codeclimate-action@v9.0.0
        env:
          CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
        with:
          coverageCommand: npm run coverage