.github/workflows/main.yml
name: Node.js CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [13.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build --if-present
- run: make lint
- name: Test & publish code coverage
uses: paambaati/codeclimate-action@v2.4.0
env:
CC_TEST_REPORTER_ID: 87ec3ad26a5f3bebe403010b1f0495722f64f94ec27f8c660ba0f5b13b597663
with:
coverageCommand: npm test -- --coverage
debug: true