.github/workflows/ci.yml
name: build
'on':
pull_request: null
push:
branches:
- master
jobs:
coverage:
name: Test and publish test coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: '12'
- run: npm install
- uses: paambaati/codeclimate-action@v2.4.0
env:
CC_TEST_REPORTER_ID: '${{ secrets.CODECLIMATEREPORTERID }}'
with:
coverageCommand: npm run coverage
coverageLocations: './coverage/clover.xml:clover'
debug: true