[TECH] Add a workflow to build version #196
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: Check tests | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
vitest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'latest' | |
- name: Install dependencies | |
run: npm install | |
- name: Run all tests | |
run: npx vitest run | |
# Collecter les résultats des tests | |
- name: Store test results (optional) | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: test-results | |
path: ./test-results |