From d809152d1f4d0bb92754f46594f087aaa4bd793f Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 18 Oct 2024 17:37:54 +0800 Subject: [PATCH] Setup GHAs for collect coerage --- .github/workflows/apps-docs.yaml | 30 ++++++++++++++++++++++++++++++ .github/workflows/apps-web.yaml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 .github/workflows/apps-docs.yaml create mode 100644 .github/workflows/apps-web.yaml diff --git a/.github/workflows/apps-docs.yaml b/.github/workflows/apps-docs.yaml new file mode 100644 index 0000000..38b26c3 --- /dev/null +++ b/.github/workflows/apps-docs.yaml @@ -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 }} diff --git a/.github/workflows/apps-web.yaml b/.github/workflows/apps-web.yaml new file mode 100644 index 0000000..4b83ad2 --- /dev/null +++ b/.github/workflows/apps-web.yaml @@ -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 }}