Skip to content

Commit

Permalink
Merge 8f0c1ea into a61ea4d
Browse files Browse the repository at this point in the history
  • Loading branch information
oshi97 committed May 13, 2021
2 parents a61ea4d + 8f0c1ea commit 726fe18
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will run our tests, generate an lcov code coverage file,
# and send that coverage to Coveralls

name: Code Coverage

on:
push:
branches-ignore: dev/*
pull_request:

jobs:
Coveralls:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npx gulp templates
- run: npx jest --coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Answers Search UI
Outline:

<h3>
<a href='https://coveralls.io/github/yext/answers-search-ui?branch=master'>
<img src='https://coveralls.io/repos/github/yext/answers-search-ui/badge.svg?branch=master' alt='Coverage Status' />
</a>
</h3>

1. [Install / Setup](#install-and-setup)
2. [ANSWERS.init Configuration Options](#answersinit-configuration-options)
- [Vertical Pages Configuration](#vertical-pages-configuration)
Expand Down
1 change: 1 addition & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ exports.buildLocales = parallel(
templates.buildLocales
);
exports.extractTranslations = extractTranslations;
exports.templates = templates.default;
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@
},
"jest": {
"bail": 0,
"collectCoverageFrom": [
"<rootDir>/src/**/*.js",
"<rootDir>/conf/**/*.js"
],
"verbose": true,
"setupFilesAfterEnv": [
"./tests/setup/setup.js"
Expand Down

0 comments on commit 726fe18

Please sign in to comment.