perf: add typescript support #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: Test Coverage | |
uses: ArtiomTr/jest-coverage-report-action@v2 | |
id: coverage | |
with: | |
output: report-markdown | |
- name: Publish Coverage | |
uses: marocchino/sticky-pull-request-comment@v2 | |
with: | |
message: ${{ steps.coverage.outputs.report }} |