Skip to content

Commit cd51703

Browse files
committed
nx: Try coveralls github actions for pushing coverage report
1 parent d274803 commit cd51703

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

.github/workflows/ci-test.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
name: "CI: test & build"
22

3-
on: [push, pull_request]
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
push:
7+
branches:
8+
- master
9+
- dev
10+
- dev-v6
411

512
jobs:
613
build-and-test:
@@ -33,11 +40,17 @@ jobs:
3340
# This runs vitest with coverage enabled
3441
run: yarn test:coverage
3542

36-
- name: Upload to Coveralls
37-
run: yarn coveralls
38-
env:
39-
# REQUIRED: The script needs this to know where to upload
40-
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
43+
- name: Upload coverage to Coveralls
44+
uses: coverallsapp/github-action@v2
45+
with:
46+
format: lcov
47+
file: ./coverage/lcov.info
48+
49+
# - name: Upload to Coveralls
50+
# run: yarn coveralls
51+
# env:
52+
# # REQUIRED: The script needs this to know where to upload
53+
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
4154

4255
- name: Build the library
4356
run: yarn build

packages/sequelize-guard/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
"test:watch": "vitest",
6060
"test:ui": "vitest --ui",
6161
"test:coverage": "vitest run --coverage",
62-
"coveralls": "cat ./coverage/lcov.info | coveralls",
6362
"lint": "eslint .",
6463
"lint:fix": "eslint . --fix",
6564
"check:prettier": "prettier -c src/",

0 commit comments

Comments
 (0)