doc: Add badge #1
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 Test | |
on: | |
push: | |
branches: ["main"] | |
jobs: | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout to Repo Directory | |
uses: actions/checkout@v2 | |
- name: Use Node.js 18.16.0 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "18.16.0" | |
- name: NPM ci and cacheing | |
uses: bahmutov/npm-install@v1 | |
with: | |
useRollingCache: true | |
unittest: | |
name: Run UnitTest | |
needs: [build] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout to Repo Directory | |
uses: actions/checkout@v2 | |
- name: Use Node.js 18.16.0 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "18.16.0" | |
- name: Get Cache Node Module | |
uses: bahmutov/npm-install@v1 | |
with: | |
useRollingCache: true | |
- name: run unit test | |
run: npm run test:coverage | |
- name: Upload coverage report | |
uses: actions/upload-artifact@v2 | |
with: | |
name: coverage-report | |
path: ${{ github.workspace }}/coverage |