diff --git a/.github/workflows/coveralls.yml b/.github/workflows/coveralls.yml new file mode 100644 index 00000000..58b06531 --- /dev/null +++ b/.github/workflows/coveralls.yml @@ -0,0 +1,32 @@ +on: + push: + branches: + - main + 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: Prepublish + run: npm run prepublish + - name: Build Storybook + run: npm run build-storybook + - name: Test + run: JEST_MAX_WORKERS=95% npm run test:report + - name: Coveralls + uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949 diff --git a/.github/workflows/publish_npm_package.yml b/.github/workflows/publish_npm_package.yml index a78898bd..a3d6a90c 100644 --- a/.github/workflows/publish_npm_package.yml +++ b/.github/workflows/publish_npm_package.yml @@ -35,6 +35,8 @@ jobs: run: npm audit signatures - name: Prepublish run: npm run prepublish + - name: Run tests and generate coverage report + run: npm run test:report - name: Release if: success() env: diff --git a/.github/workflows/test_workflow.yml b/.github/workflows/test_workflow.yml index 6692758f..3f1e0221 100644 --- a/.github/workflows/test_workflow.yml +++ b/.github/workflows/test_workflow.yml @@ -34,3 +34,5 @@ jobs: run: npm run prepublish - name: Build Storybook run: npm run build-storybook + - name: Run tests and generate coverage report + run: npm run test:report