Skip to content

Commit be4b723

Browse files
Merge pull request #15 from Lambda-School-Labs/bug/ci-badge
ci badge fix
2 parents 8153a75 + 178d9ba commit be4b723

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/nodejs.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
node-version: [10.x, 12.x, 14.x]
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
- run: npm install
23+
- run: npm run build --if-present
24+
- run: npm test
25+
env:
26+
CI: true
27+
28+
coverage:
29+
needs: [build]
30+
name: Run Test and Publish Code Coverage
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@master
34+
- uses: actions/setup-node@master
35+
with:
36+
node-version: '12'
37+
- run: npm install
38+
- run: npm run build --if-present
39+
- uses: paambaati/codeclimate-action@v2.5.4
40+
env:
41+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
42+
with:
43+
coverageCommand: npm run coverage
44+
debug: true

0 commit comments

Comments
 (0)