Feat/cypress test environment #2450
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: "Tests: vitest" | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: ["main"] | |
schedule: | |
- cron: "45 15 * * 4" | |
jobs: | |
setup: | |
name: Running Pinia Tests 🚀 | |
strategy: | |
matrix: | |
node-version: [21.3.0] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install Yarn/ Node ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "yarn" | |
- name: Install Dependencies | |
run: yarn install --immutable | |
# Run the tests! | |
- name: Run Vitest 🚀 | |
run: yarn run test:pinia |