OTP functionality #62
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: 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 --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 |