feat: test
This commit is contained in:
parent
3345960351
commit
49635fcf5a
23
.github/workflow/codecov.yml
vendored
23
.github/workflow/codecov.yml
vendored
@ -1,19 +1,32 @@
|
||||
name: Main workflow
|
||||
on: [push, pull_request]
|
||||
# Unit Test Coverage Report
|
||||
name: Test Coverage
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- feature/workflow
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
codecov:
|
||||
build:
|
||||
name: Coverage
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Set up Node 20
|
||||
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 20
|
||||
node-version: 18
|
||||
|
||||
- name: Install dependencies
|
||||
run: cd server && npm install
|
||||
|
||||
- name: Run tests and collect coverage
|
||||
run: cd server && npm run test:cov
|
||||
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v4-beta
|
||||
env:
|
||||
|
Loading…
Reference in New Issue
Block a user