Compare commits

...

14 Commits

Author SHA1 Message Date
Andrew Shumway
eeee69cf43 Add contents keyword 2023-05-02 13:44:21 -06:00
Andrew Shumway
d3905c22ce Added read back to on push permissions 2023-05-02 13:35:20 -06:00
Andrew Shumway
dc4df683f9 Test coverage threshold in actions 2023-05-02 13:32:29 -06:00
Andrew Shumway
5c56404aac Move permissions/change output and annotations 2023-05-02 12:48:47 -06:00
Andrew Shumway
125dd56921 Uncommenting failing assert to test actions CI 2023-05-02 10:03:17 -06:00
Andrew Shumway
2c4e119a6b Merge branch 'main' of https://github.com/GSA/notifications-admin into notify-473 2023-05-02 09:47:39 -06:00
Andrew Shumway
15f3f261fb Add action to find PR number 2023-05-02 09:16:40 -06:00
Andrew Shumway
a3b18070ae Add with/test script flag 2023-05-01 14:52:12 -06:00
Andrew Shumway
3ab979347c Tests configurations 2023-05-01 14:33:51 -06:00
Andrew Shumway
6015a05d9f Tests on pull_request_target 2023-05-01 14:22:30 -06:00
Andrew Shumway
115953dbcf Fixed syntax on permissions 2023-05-01 13:49:51 -06:00
Andrew Shumway
63b16e0ae7 Test permissions on pull requests for actions 2023-05-01 13:45:45 -06:00
Andrew Shumway
647fe4f40b Tests config github actions 2023-05-01 09:33:35 -06:00
Andrew Shumway
a91ba71085 Commented out test failure/add jest config 2023-05-01 09:32:56 -06:00
3 changed files with 24 additions and 1 deletions

View File

@@ -16,10 +16,22 @@ env:
jobs:
build:
permissions:
checks: write
pull-requests: write
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- 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
run: pipenv run flake8 .
- name: Check imports alphabetized

1
.gitignore vendored
View File

@@ -71,6 +71,7 @@ htmlcov/
.coverage.*
.cache
.pytest_cache
coverage/
coverage.xml
test_results.xml
*,cover

View File

@@ -1,7 +1,17 @@
module.exports = {
collectCoverage: true,
coverageDirectory: './coverage',
coverageThreshold: {
global: {
branches: 75,
functions: 90,
lines: 90,
statements: 90,
}
},
setupFiles: ['./support/setup.js'],
testEnvironment: 'jsdom',
testEnvironmentOptions: {
url: 'https://www.notifications.service.gov.uk',
},
}
};