From 6f3bf05ab4aa07b8e557dc214749d9cbe088304d Mon Sep 17 00:00:00 2001 From: Rob Moffat Date: Wed, 18 Dec 2024 13:57:18 +0000 Subject: [PATCH] Adding base coverage --- .github/workflows/base-coverage.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/base-coverage.yml diff --git a/.github/workflows/base-coverage.yml b/.github/workflows/base-coverage.yml new file mode 100644 index 000000000..474d7a933 --- /dev/null +++ b/.github/workflows/base-coverage.yml @@ -0,0 +1,29 @@ +name: Test coverage for main branch + +on: + push: + branches: + - main + - fdc3-for-web-impl + +jobs: + test_and_upload_coverage: + runs-on: ubuntu-latest + name: Test and upload coverage + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + ref: ${{ github.event.ref }} + fetch-depth: 1000 + + - name: Run tests + run: | + npm i + npm run test + + - name: Upload coverage artifact + uses: actions/upload-artifact@v2 + with: + name: test-coverage-output + path: coverage \ No newline at end of file