-
Notifications
You must be signed in to change notification settings - Fork 566
37 lines (33 loc) · 1.15 KB
/
nodejs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node CI
on: [push, pull_request]
jobs:
build:
name: Test
uses: pkgjs/action/.github/workflows/node-test.yaml@v0.1.7
with:
runs-on: ubuntu-latest, windows-latest
test-command: npm run coverage:ci
timeout-minutes: 15
post-test-steps: |
- name: Coverage Report
uses: codecov/codecov-action@v3
include: |
- runs-on: ubuntu-latest
node-version: 16.8
exclude: |
- runs-on: windows-latest
node-version: 16
automerge:
if: >
github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]'
needs: build
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: fastify/github-action-merge-dependabot@f4fba1d411acf25f03affabc4ac209291cb9d6da # v3.8.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}