From 2e10bf712d7ad699f89834ff3687ca57abafdcfd Mon Sep 17 00:00:00 2001 From: Niloofar Date: Fri, 31 May 2024 17:20:54 +0800 Subject: [PATCH] ci: added coveralls workflow --- .github/workflows/coveralls.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/coveralls.yml diff --git a/.github/workflows/coveralls.yml b/.github/workflows/coveralls.yml new file mode 100644 index 00000000..979f5120 --- /dev/null +++ b/.github/workflows/coveralls.yml @@ -0,0 +1,29 @@ +on: + push: + branches: + - master + pull_request: + types: [opened, synchronize, edited] + +name: Coveralls +jobs: + build: + name: Reporter + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 + - name: Setup Node.js + uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 + with: + node-version: '20' + - name: Update to latest npm (temporary fix for audit below) + run: npm install --global npm + - name: Install dependencies + run: npm clean-install + - name: Verify the integrity of provenance attestations and registry signatures for installed dependencies + run: npm audit signatures + - name: Test + run: JEST_MAX_WORKERS=95% npm run test:jest -- --collectCoverage + - name: Coveralls + uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949