summaryrefslogtreecommitdiffstats
path: root/fastify-busboy/.github/workflows/coverage.yml
diff options
context:
space:
mode:
Diffstat (limited to 'fastify-busboy/.github/workflows/coverage.yml')
-rw-r--r--fastify-busboy/.github/workflows/coverage.yml44
1 files changed, 44 insertions, 0 deletions
diff --git a/fastify-busboy/.github/workflows/coverage.yml b/fastify-busboy/.github/workflows/coverage.yml
new file mode 100644
index 0000000..3d7b943
--- /dev/null
+++ b/fastify-busboy/.github/workflows/coverage.yml
@@ -0,0 +1,44 @@
+---
+
+name: coverage
+
+on:
+ push:
+ branches:
+ - master
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ name: coverage
+
+ strategy:
+ matrix:
+ node-version: [16.x]
+
+ steps:
+ - name: Checkout Repository
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 1
+
+ - name: Setup Node ${{ matrix.node-version }}
+ uses: actions/setup-node@v4
+ with:
+ always-auth: false
+ node-version: ${{ matrix.node-version }}
+
+ - name: Run npm install
+ run: npm install
+
+ - name: Run Tests
+ run: npm run test:coverage
+
+ - name: Generate LCOV
+ run: npm run coveralls
+
+ - name: Update Coveralls
+ uses: coverallsapp/github-action@master
+ with:
+ github-token: ${{ secrets.GITHUB_TOKEN }}
+ if: success()