liatrio/gratibot

View on GitHub
.github/workflows/test.yaml

Summary

Maintainability
Test Coverage
name: test

on:
  push:
    branches:
      - "*"
  pull_request:
    branches: [main]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - name: Setup Node
        uses: actions/setup-node@master
        with:
          node-version: 22
      - name: Checkout Code
        uses: actions/checkout@v4
      - name: Test & publish
        uses: paambaati/codeclimate-action@v9.0.0
        env:
          CC_TEST_REPORTER_ID: ${{ secrets.code_climate_reporter_id }}
        with:
          coverageCommand: npm run test:ci
          coverageLocations: |
            ${{github.workspace}}/*.lcov:lcov