Skip to content

Commit

Permalink
Merge pull request #15 from thisyahlen-deriv/thisyahlen/add_coveralls
Browse files Browse the repository at this point in the history
Thisyahlen/ci: add coveralls workflow
  • Loading branch information
thisyahlen-deriv authored Mar 25, 2024
2 parents 7d6d200 + 74cea04 commit 61cda88
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-deploy-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ concurrency:

jobs:
build_and_deploy_preview_link:
runs-on: Ubuntu-latest
runs-on: ubuntu-latest
permissions:
contents: read
checks: write
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e
with:
node-version: 18.x
node-version: 20.x

- name: Install dependencies
uses: "deriv-com/shared-actions/.github/actions/npm_install@v1"
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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
uses: actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e
with:
node-version: 20.x
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Test
run: JEST_MAX_WORKERS=95% npm run test -- --collectCoverage
- name: Coveralls
uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949

0 comments on commit 61cda88

Please sign in to comment.