-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (47 loc) · 1.36 KB
/
node-ci.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
38
39
40
41
42
43
44
45
46
47
name: Node.js CI
'on':
push:
branches:
- master
- 'renovate/**'
pull_request:
types:
- opened
- synchronize
env:
FORCE_COLOR: 1
NPM_CONFIG_COLOR: always
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Read .nvmrc
run: 'echo ::set-output name=NVMRC::$(cat .nvmrc)'
id: nvm
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
- uses: bahmutov/npm-install@v1
- run: npm test
- name: Upload coverage data to Codecov
run: 'npm run coverage:report'
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: report webpack stats
run: npm run packtracker:publish
env:
PT_PROJECT_TOKEN: ${{ secrets.PT_PROJECT_TOKEN }}
PT_BRANCH: ${{ steps.extract_branch.outputs.branch }}
# - name: Publish Pact to Broker
#run: npm run pact:publish
#env:
#PACT_BROKER_USER: ${{ secrets.PACT_BROKER_USER }}
#PACT_BROKER_PASSWORD: ${{ secrets.PACT_BROKER_PASSWORD }}
#- name: Can I Deploy?
#run: npm run pact:can-i-deploy