mirror of
https://github.com/anuraghazra/github-readme-stats.git
synced 2025-01-12 13:41:40 +08:00
214838db09
* CI: Avoid test workflow duplicate * dev * dev
44 lines
730 B
YAML
44 lines
730 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@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
|