Skip to content

workflows: test

workflows: test #2

Workflow file for this run

name: Test Workflow
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
- name: Upload Vitest coverage
uses: actions/upload-artifact@v4
if: success()
with:
name: coverage
path: ./coverage/