generated from BloomTech-Labs/labs-spa-starter
-
Notifications
You must be signed in to change notification settings - Fork 8
27 lines (27 loc) · 839 Bytes
/
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
name: build
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
coverage:
name: Test and publish test coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12'
- run: npm install
- run: cp .env.sample .env
- uses: paambaati/codeclimate-action@v2.6.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CodeClimateReporterId }}
with:
# Run our `coverage` script in our `package.json`
coverageCommand: npm run coverage
# By default, this looks for a `coverage` folder in the root of your project, but you may need to change this
coverageLocations: './coverage/clover.xml:clover'
# Great for troubleshooting
debug: true