Updated readme #282
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: TypeScript CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
unitTest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2.4.0 | |
with: | |
version: 8.8.0 | |
- name: Install dependencies | |
run: | | |
pnpm install | |
- name: Run tests | |
run: | | |
pnpm run coverage | |
ls -al coverage | |
- name: SonarCloud Scan | |
uses: SonarSource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: 1ebdc4b127391a8acbc3420eb585961e4e0846de | |
- name: Upload coverage to codecov | |
run: curl -s https://codecov.io/bash | bash |