Skip to content

perf: add typescript support #6

perf: add typescript support

perf: add typescript support #6

Workflow file for this run

name: Pull Request
on: [pull_request]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Install dependencies
run: npm ci
- name: Code Lint
run: npm run lint
- name: Test app build
run: npm run build --if-present
- name: Commit Lint
uses: wagoid/commitlint-github-action@v5
with:
failOnWarnings: true
- name: Unit tests
run: npm test -- --ci --json --coverage --testLocationInResults --outputFile=report.json
# - name: Test Coverage
# uses: ArtiomTr/jest-coverage-report-action@v2
# id: coverage
# with:
# output: report-markdown
# test-script: npm test -- --ci --json --coverage --testLocationInResults --outputFile=report.json
# - name: Publish Coverage
# uses: marocchino/sticky-pull-request-comment@v2
# with:
# message: ${{ steps.coverage.outputs.report }}