Skip to content

Commit 94483e6

Browse files
authored
Merge pull request #142 from deriv-com/shayan/add-test-to-workflows
Shayan/Setup coveralls
2 parents aad290e + e205fe6 commit 94483e6

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

.github/workflows/coveralls.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
pull_request:
6+
types: [opened, synchronize, edited]
7+
name: Coveralls
8+
jobs:
9+
build:
10+
name: Reporter
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
15+
- name: Setup Node.js
16+
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8
17+
with:
18+
node-version: '20'
19+
- name: Update to latest npm (temporary fix for audit below)
20+
run: npm install --global npm
21+
- name: Install dependencies
22+
run: npm clean-install
23+
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
24+
run: npm audit signatures
25+
- name: Prepublish
26+
run: npm run prepublish
27+
- name: Build Storybook
28+
run: npm run build-storybook
29+
- name: Test
30+
run: JEST_MAX_WORKERS=95% npm run test:report
31+
- name: Coveralls
32+
uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949

.github/workflows/publish_npm_package.yml

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ jobs:
3535
run: npm audit signatures
3636
- name: Prepublish
3737
run: npm run prepublish
38+
- name: Run tests and generate coverage report
39+
run: npm run test:report
3840
- name: Release
3941
if: success()
4042
env:

.github/workflows/test_workflow.yml

+2
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@ jobs:
3434
run: npm run prepublish
3535
- name: Build Storybook
3636
run: npm run build-storybook
37+
- name: Run tests and generate coverage report
38+
run: npm run test:report

0 commit comments

Comments
 (0)