.github/workflows/main.yml
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["16", "14", "12"]
name: Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: yarn install --ignore-engines
- run: yarn test
- run: yarn build
- name: Code Climate Coverage Action
uses: paambaati/codeclimate-action@v3.2.0
env:
CC_TEST_REPORTER_ID: 8aa5d9788684e976d2052500db739d506f554674994055ea137ebaef947e59d5
with:
coverageCommand: yarn coverage