forked from keep-starknet-strange/vault
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 953 Bytes
/
backend.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Backend
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./backend
permissions:
# Required to checkout the code
contents: read
# Required to put a comment into the pull-request
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 8
- name: 'Install Deps'
run: pnpm install
- name: 'Check format and lint'
run: pnpm check
- name: 'Test'
run: pnpm vitest --pool=forks --watch=false
- name: 'Coverage'
run: pnpm vitest --coverage.enabled true
- name: "Upload Coverage"
uses: actions/upload-artifact@v4
with:
name: coverage
path: ./backend/coverage
- name: "Upload vitest config"
uses: actions/upload-artifact@v4
with:
name: vitest.config.ts
path: ./backend/vitest.config.ts