Skip to content

Commit

Permalink
Merge pull request #32 from centrica-engineering/feature/running-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jholt1 authored Oct 27, 2021
2 parents 78fd47c + fd20f7f commit a8a34ec
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Tests

on: [pull_request]

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
- run: npm ci
- run: npm run lint

testing:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
- run: npm ci
- run: npm run test
- uses: actions/upload-artifact@v2
with:
name: code-coverage
path: packages/library/coverage/lcov-report/*
if-no-files-found: warn
10 changes: 9 additions & 1 deletion packages/library/web-test-runner.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,13 @@ export default {
},
plugins: [
...plugins
]
],
coverageConfig: {
threshold: {
statements: 99,
branches: 99,
functions: 99,
lines: 99
}
}
};

0 comments on commit a8a34ec

Please sign in to comment.