feat: initial commit

This commit is contained in:
Krise
2023-08-02 11:42:48 +00:00
parent 91ad3a16b6
commit 681e14ab9f
17 changed files with 2663 additions and 54785 deletions

View File

@@ -5,20 +5,27 @@ on:
branches: [ main ]
jobs:
build:
check:
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 16, 18, 20 ]
node: [ 18, 20 ]
name: Node ${{ matrix.node }} sample
name: Node ${{ matrix.node }} PR
steps:
- uses: actions/checkout@v3
- name: Run linting rules and tests
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm run lint
- run: npm run test
cache: 'pnpm'
- run: pnpm install
name: install dependencies
- run: pnpm lint
name: linting
- run: pnpm test
name: testing
- name: 'Report Coverage'
if: always() # Also generate the report if tests are failing
uses: davelosert/vitest-coverage-report-action@v2