mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-19 14:03:52 -04:00
Move permissions/change output and annotations
This commit is contained in:
17
.github/workflows/checks.yml
vendored
17
.github/workflows/checks.yml
vendored
@@ -1,15 +1,6 @@
|
||||
name: Run checks
|
||||
|
||||
on:
|
||||
push:
|
||||
permissions:
|
||||
contents: read
|
||||
pull_request_target:
|
||||
types:
|
||||
- opened
|
||||
permissions:
|
||||
pull-requests: write
|
||||
contents: write
|
||||
on: [push]
|
||||
|
||||
env:
|
||||
NOTIFY_ENVIRONMENT: test
|
||||
@@ -22,6 +13,10 @@ env:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
permissions:
|
||||
checks: write
|
||||
pull-requests: write
|
||||
contents: write
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@@ -31,6 +26,8 @@ jobs:
|
||||
- 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 .
|
||||
|
||||
@@ -3,7 +3,7 @@ module.exports = {
|
||||
coverageDirectory: './coverage',
|
||||
coverageThreshold: {
|
||||
global: {
|
||||
branches: 75,
|
||||
branches: 80,
|
||||
functions: 90,
|
||||
lines: 90,
|
||||
statements: 90,
|
||||
|
||||
Reference in New Issue
Block a user