epaew/eslint-plugin-filenames-simple

View on GitHub
.github/workflows/jest.yaml

Summary

Maintainability
Test Coverage
name: Run Jest

on:
  pull_request: {}
  push:
    branches:
      - master

jobs:
  jest:
    name: Jest w/ Node:${{ matrix.node }} ESLint:${{ matrix.eslint }}
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        node:
          - 14.x
          - 16.x
          - 18.x
          - 20.x
        eslint:
          - 7
          - 8
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v3
        with:
          node-version: ${{ matrix.node }}
          cache: yarn
      - run: yarn install --frozen-lockfile

      - run: yarn add eslint@${{ matrix.eslint }}

      - name: yarn run test && report coverage
        uses: paambaati/codeclimate-action@v5.0.0
        env:
          CC_TEST_REPORTER_ID: 03c045faa77d44bb865e441b9507cb2a6ee668a225962491ce40d37d6b297899
        with:
          coverageCommand: yarn test:ci
          coverageLocations: |
            ${{ github.workspace }}/coverage/lcov.info:lcov
          debug: true

      - name: Reset local changes
        run: git checkout . && yarn