Skip to content

Commit 4fed2d6

Browse files
committed
#1 - WIP: Code Climate integration
Signed-off-by: Gregor Anders <gregor.anders@gmail.com>
1 parent 1388b77 commit 4fed2d6

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/development.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
GITHUB_BASE_REF: ${{ github.base_ref }}
5353
GITHUB_COMMIT: ${{ github.sha }}
5454
- name: publish code coverage to code climate
55+
if: ${{ matrix.os }} == "ubuntu-latest"
5556
uses: paambaati/codeclimate-action@v2.3.0
5657
env:
5758
CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE }}

.github/workflows/master.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,21 @@ jobs:
5151
with:
5252
github-token: ${{ secrets.GITHUB_TOKEN }}
5353
path-to-lcov: ./coverage/lcov.info
54+
env:
55+
CI: true
56+
GITHUB_CONTEXT: ${{ toJson(github) }}
57+
GITHUB_BRANCH: ${{ github.ref }}
58+
GITHUB_HEAD_REF: ${{ github.head_ref }}
59+
GITHUB_BASE_REF: ${{ github.base_ref }}
60+
GITHUB_COMMIT: ${{ github.sha }}
61+
- name: publish code coverage to code climate
62+
if: ${{ matrix.os }} == "ubuntu-latest"
63+
uses: paambaati/codeclimate-action@v2.3.0
64+
env:
65+
CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE }}
66+
with:
67+
coverageCommand: npm run test
68+
debug: true
5469
- name: release
5570
id: release
5671
uses: ./.github/actions/create-release

0 commit comments

Comments
 (0)