Skip to content

Commit

Permalink
Merge pull request #3 from BadOPCode/update/2.0
Browse files Browse the repository at this point in the history
Update/2.0
  • Loading branch information
BadOPCode authored Feb 16, 2023
2 parents 4f22061 + 45f52ca commit 6829cf9
Show file tree
Hide file tree
Showing 11 changed files with 16,037 additions and 36,333 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ jobs:
- uses: actions/checkout@v1

- run: npm ci
- run: npm test
- run: npm test:coverage
- run: npm run package

- uses: ./
with:
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
command: after-build -t lcov

5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,7 @@ bin/**/cc-test-reporter

# dotenv environment variables file
.env
.env.test
.env.test

build/
.nyc_output
21 changes: 18 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
# Code Climate Test Reporter Action


[![Maintainability](https://api.codeclimate.com/v1/badges/bf8b5212f7473b28e230/maintainability)](https://codeclimate.com/github/BadOPCode/codeclimate-test-reporter/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/bf8b5212f7473b28e230/test_coverage)](https://codeclimate.com/github/BadOPCode/codeclimate-test-reporter/test_coverage)


Action for sending reports to Code Climate.
Originated from https://github.com/aktions/codeclimate-test-reporter
I made a fork of this project as it had grown quiet for a while and this is my favorite implementation of the Code Climate action.
The original (at the time of writing this) has stopped working because it's trying to use Node12 instead of Node16 which is required by GitHub now.
Normally, I would have just made a PR and called it a day. But I was in a rush to fix my repos which had all stopped... AND the big one... I prefer Typescript and Alsatian unit testing. And that is why I forked. I leave my fork references in my repo purely to give credit where credit is due. If any kudos are to be given make sure the originator is above my name. ;-)
That being said, this fork currently has no compatibilty at HEAD to make a PR to the original repo nor will it ever resync at this point.
Please be cautious when making a PR, not to make it to the original repo.
All PR's and suggestions are welcomed.


## Usage

Basic usage is as follows:

```yaml
- name: Code Climate Test Reporter
uses: aktions/codeclimate-test-reporter@v1
uses: BadOPCode/codeclimate-test-reporter@v2
with:
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
command: after-build
Expand All @@ -24,7 +39,7 @@ You can also supply additional command line arguments via the same `command`
input.

- name: Send code coverage report
uses: aktions/codeclimate-test-reporter@v1
uses: BadOPCode/codeclimate-test-reporter@v2
with:
...
command: after-build --coverage-input-type gocov
command: after-build --coverage-input-type gocov
Loading

0 comments on commit 6829cf9

Please sign in to comment.