From 3229c96b529ad931e1f69538c92de87fe025bc21 Mon Sep 17 00:00:00 2001 From: Zoltan Rakottyai Date: Wed, 21 Aug 2024 14:39:34 +0200 Subject: [PATCH] chore: add GH workflow action for coverage reporting --- .github/workflows/coverage.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/coverage.yml diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000..4d46fcf --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,33 @@ +name: Tests & Coverage + +on: + push: + branches: [main, next] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 + run_install: false + - uses: actions/setup-node@v4 + with: + node-version: "lts/*" + cache: pnpm + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Run tests with coverage + run: pnpm run coverage + + - name: Upload coverage to Coveralls + uses: coverallsapp/github-action@v2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }}