Stacks Explorer Sandbox - feature guide #894
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: Code checks | |
on: | |
push: | |
branches: | |
- main | |
tags-ignore: | |
- '**' | |
paths-ignore: | |
- '**/CHANGELOG.md' | |
- '**/package.json' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test-unit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Prepare testing env | |
uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '18.9.0' | |
- run: npm install -g pnpm | |
- run: pnpm i | |
- name: Run unit tests | |
run: pnpm run test --coverage | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |