mirror of
https://github.com/System-End/github-readme-stats.git
synced 2026-04-19 16:38:23 +00:00
47 lines
941 B
YAML
47 lines
941 B
YAML
name: Test
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
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@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
|
|
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 bench tests
|
|
run: |
|
|
npm run bench
|
|
|
|
- name: Run Prettier
|
|
run: |
|
|
npm run format:check
|
|
|
|
- name: Code Coverage
|
|
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
|