Move permissions/change output and annotations

This commit is contained in:
Andrew Shumway
2023-05-02 12:48:47 -06:00
parent 125dd56921
commit 5c56404aac
2 changed files with 8 additions and 11 deletions
+7 -10
View File
@@ -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 .
+1 -1
View File
@@ -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,