feat: workflow
This commit is contained in:
parent
c46176e39e
commit
bf9a423064
20
.github/workflow/codecov.yml
vendored
Normal file
20
.github/workflow/codecov.yml
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
name: Main workflow
|
||||||
|
on: [push, pull_request]
|
||||||
|
jobs:
|
||||||
|
run:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Set up Node 20
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 20
|
||||||
|
- 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:
|
||||||
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
Loading…
Reference in New Issue
Block a user