mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 10:28:41 -04:00
Move permissions/change output and annotations
This commit is contained in:
@@ -1,15 +1,6 @@
|
|||||||
name: Run checks
|
name: Run checks
|
||||||
|
|
||||||
on:
|
on: [push]
|
||||||
push:
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
pull_request_target:
|
|
||||||
types:
|
|
||||||
- opened
|
|
||||||
permissions:
|
|
||||||
pull-requests: write
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
NOTIFY_ENVIRONMENT: test
|
NOTIFY_ENVIRONMENT: test
|
||||||
@@ -22,6 +13,10 @@ 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
|
||||||
@@ -31,6 +26,8 @@ jobs:
|
|||||||
- uses: ArtiomTr/jest-coverage-report-action@v2
|
- uses: ArtiomTr/jest-coverage-report-action@v2
|
||||||
with:
|
with:
|
||||||
test-script: npm test
|
test-script: npm test
|
||||||
|
output: report-markdown
|
||||||
|
annotations: failed-tests
|
||||||
prnumber: ${{ steps.findPr.outputs.number }}
|
prnumber: ${{ steps.findPr.outputs.number }}
|
||||||
- name: Run style checks
|
- name: Run style checks
|
||||||
run: pipenv run flake8 .
|
run: pipenv run flake8 .
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ module.exports = {
|
|||||||
coverageDirectory: './coverage',
|
coverageDirectory: './coverage',
|
||||||
coverageThreshold: {
|
coverageThreshold: {
|
||||||
global: {
|
global: {
|
||||||
branches: 75,
|
branches: 80,
|
||||||
functions: 90,
|
functions: 90,
|
||||||
lines: 90,
|
lines: 90,
|
||||||
statements: 90,
|
statements: 90,
|
||||||
|
|||||||
Reference in New Issue
Block a user