Add test action
This commit is contained in:
parent
3092be00ff
commit
40c5af93ab
1 changed files with 37 additions and 0 deletions
37
.github/workflows/unit-tests.yml
vendored
Normal file
37
.github/workflows/unit-tests.yml
vendored
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
name: Assign PR to creator
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [ opened ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
unit_test:
|
||||||
|
name: Unit tests
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: pnpm/action-setup@v2.2.4
|
||||||
|
with:
|
||||||
|
version: 7.5.0
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 18
|
||||||
|
cache: "pnpm"
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pnpm install
|
||||||
|
- name: Test
|
||||||
|
run: pnpm test:ci
|
||||||
|
# TODO: Add coverage - crawl through every package
|
||||||
|
# - name: Generate coverage report
|
||||||
|
# uses: irongut/CodeCoverageSummary@v1.3.0
|
||||||
|
# with:
|
||||||
|
# filename: coverage/cobertura-coverage.xml
|
||||||
|
# format: markdown
|
||||||
|
# output: file
|
||||||
|
#
|
||||||
|
# - name: Add Coverage PR Comment
|
||||||
|
# uses: marocchino/sticky-pull-request-comment@v2
|
||||||
|
# if: github.event_name == 'pull_request'
|
||||||
|
# with:
|
||||||
|
# recreate: true
|
||||||
|
# path: code-coverage-results.md
|
Loading…
Reference in a new issue