-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 909 Bytes
/
code-climate.yml
File metadata and controls
42 lines (38 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
name: CodeClimate report
on:
push:
branches:
- master
tags:
- '!*'
paths:
- .github/workflows/code-climate.yml
- .codeclimate.yml
- src/*
- test/*
- '*.json'
pull_request:
paths:
- '!*.md'
- '!*.yaml'
jobs:
coverage:
name: coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
- run: npm install
- uses: paambaati/codeclimate-action@v2.7.4
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: npm run test:coverage
coverageLocations: ${{github.workspace}}/test-reports/lcov.info:lcov
- uses: actions/upload-artifact@v2
with:
name: Test Reports
path: ${{ github.workspace }}/test-reports/**/*