tmphat1312 is learning GitHub Actions with Vitest testing #15
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: vitest-ci | |
run-name: ${{ github.actor }} is learning GitHub Actions with Vitest testing | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
jobs: | |
vitest-ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Install pnpm | |
run: npm i -g pnpm | |
- name: Install Dependencies | |
run: pnpm install | |
- name: Run unit tests | |
run: pnpm test |