Merge pull request #112 from alfredotoselli/plugin-comp-versions #387
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 Unit Tests | |
on: | |
push: | |
branches: [main, master, develop] | |
paths: | |
- '**.ts' | |
- '**.vue' | |
pull_request: | |
branches: [main, master, develop] | |
paths: | |
- '**.ts' | |
- '**.vue' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- name: Install dependencies | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
cache: 'pnpm' | |
- run: pnpm install --frozen-lockfile | |
- name: Run Vitest tests | |
run: pnpm run unit |