Files
github-readme-stats/.github/workflows/test.yml
T
Rick Staa b7928aae24 build: rename lint command (#2909)
This commit renames the eslint npm command so that it is consistent with
the naming used for the other commands.
2023-07-05 01:08:59 +03:00

44 lines
727 B
YAML

name: Test
on:
push:
branches:
- "*"
pull_request:
branches:
- master
permissions: read-all
jobs:
build:
name: Perform tests
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install & Test
run: |
npm ci
npm run test
- name: Run ESLint
run: |
npm run lint
- name: Run Prettier
run: |
npm run format:check
- name: Code Coverage
uses: codecov/codecov-action@v3