mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-22 23:36:26 -04:00
Compare commits
14 Commits
localize_u
...
notify-473
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eeee69cf43 | ||
|
|
d3905c22ce | ||
|
|
dc4df683f9 | ||
|
|
5c56404aac | ||
|
|
125dd56921 | ||
|
|
2c4e119a6b | ||
|
|
15f3f261fb | ||
|
|
a3b18070ae | ||
|
|
3ab979347c | ||
|
|
6015a05d9f | ||
|
|
115953dbcf | ||
|
|
63b16e0ae7 | ||
|
|
647fe4f40b | ||
|
|
a91ba71085 |
12
.github/workflows/checks.yml
vendored
12
.github/workflows/checks.yml
vendored
@@ -16,10 +16,22 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
permissions:
|
||||||
|
checks: write
|
||||||
|
pull-requests: write
|
||||||
|
contents: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/actions/setup-project
|
- uses: ./.github/actions/setup-project
|
||||||
|
- uses: jwalton/gh-find-current-pr@v1
|
||||||
|
id: findPr
|
||||||
|
- uses: ArtiomTr/jest-coverage-report-action@v2
|
||||||
|
with:
|
||||||
|
test-script: npm test
|
||||||
|
output: report-markdown
|
||||||
|
annotations: failed-tests
|
||||||
|
prnumber: ${{ steps.findPr.outputs.number }}
|
||||||
- name: Run style checks
|
- name: Run style checks
|
||||||
run: pipenv run flake8 .
|
run: pipenv run flake8 .
|
||||||
- name: Check imports alphabetized
|
- name: Check imports alphabetized
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -71,6 +71,7 @@ htmlcov/
|
|||||||
.coverage.*
|
.coverage.*
|
||||||
.cache
|
.cache
|
||||||
.pytest_cache
|
.pytest_cache
|
||||||
|
coverage/
|
||||||
coverage.xml
|
coverage.xml
|
||||||
test_results.xml
|
test_results.xml
|
||||||
*,cover
|
*,cover
|
||||||
|
|||||||
@@ -1,7 +1,17 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
|
collectCoverage: true,
|
||||||
|
coverageDirectory: './coverage',
|
||||||
|
coverageThreshold: {
|
||||||
|
global: {
|
||||||
|
branches: 75,
|
||||||
|
functions: 90,
|
||||||
|
lines: 90,
|
||||||
|
statements: 90,
|
||||||
|
}
|
||||||
|
},
|
||||||
setupFiles: ['./support/setup.js'],
|
setupFiles: ['./support/setup.js'],
|
||||||
testEnvironment: 'jsdom',
|
testEnvironment: 'jsdom',
|
||||||
testEnvironmentOptions: {
|
testEnvironmentOptions: {
|
||||||
url: 'https://www.notifications.service.gov.uk',
|
url: 'https://www.notifications.service.gov.uk',
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user