neighborhood999/react-gh-like-diff

View on GitHub
.github/workflows/ci.yml

Summary

Maintainability
Test Coverage
name: Node CI
on:
  push:
    branches: [master]
  pull_request:
    branches: [master]
jobs:
  lint-and-test:
    name: 'Lint & Tests'
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Set up Node.js
        uses: actions/setup-node@v1

      - name: Installing Deps
        run: |
          yarn install

      - name: Lint & Tests
        run: |
          yarn run test:cov

      - name: Upload Code Coverage
        uses: codecov/codecov-action@v1
        with:
          token: ${{secrets.CODECOV_TOKEN}}
          file: ./coverage/lcov.info