From 4257ec78aac6a829adcfe5e78ce7fb0898724ea5 Mon Sep 17 00:00:00 2001 From: Krishna Acondy Date: Mon, 12 Jul 2021 20:45:09 +0100 Subject: [PATCH] chore(ci): add coverage report to build workflow --- .github/workflows/build.yml | 4 ++++ .github/workflows/coverage.yml | 25 ------------------------- 2 files changed, 4 insertions(+), 25 deletions(-) delete mode 100644 .github/workflows/coverage.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 188d999..10d8ea1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,6 +27,10 @@ jobs: run: npm run lint - name: Run unit tests run: npm test + - name: Generate coverage report + uses: artiomtr/jest-coverage-report-action@v2.0-rc.2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} - name: Build Package run: npm run package:lib env: diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml deleted file mode 100644 index 7fc938f..0000000 --- a/.github/workflows/coverage.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: SASjs Adapter Coverage Report - -on: - pull_request: - -jobs: - build: - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [12.x] - - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - name: Install Dependencies - run: npm ci - - name: Generate coverage report - uses: artiomtr/jest-coverage-report-action@v2.0-rc.2 - with: - github-token: ${{ secrets.GITHUB_TOKEN }}