Skip to content

Commit

Permalink
Setup GHAs for collect coerage
Browse files Browse the repository at this point in the history
  • Loading branch information
qiushi1511 committed Oct 18, 2024
1 parent f549b5b commit d809152
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/apps-docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: apps/docs

on: push

jobs:
test:
name: Run tests and collect coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Node
uses: actions/setup-node@v4

- name: Install packagemanager
run: corepack prepare

- name: Install dependencies
run: pnpm install

- name: Run tests
run: cd apps/docs && pnpm run test

- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
30 changes: 30 additions & 0 deletions .github/workflows/apps-web.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: apps/web

on: push

jobs:
test:
name: Run tests and collect coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Node
uses: actions/setup-node@v4

- name: Install packagemanager
run: corepack prepare

- name: Install dependencies
run: pnpm install

- name: Run tests
run: cd apps/web && pnpm run test

- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit d809152

Please sign in to comment.