Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

[Snyk] Upgrade react-hook-form from 7.26.1 to 7.30.0 #416

Merged
merged 3 commits into from
May 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,19 @@ jobs:
Kodekvalitet:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: actions/setup-node@v1
with:
node-version: '16.x'
- run: npm ci --no-build
- run: npm test
- run: node run-sonar.js
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

Eslint:
runs-on: ubuntu-latest
Expand All @@ -54,7 +60,7 @@ jobs:
uses: snyk/actions/node@master

Docker:
needs: [Bygg,Eslint,Snyk]
needs: [Bygg,Eslint,Kodekvalitet,Snyk]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@ jobs:
Kodekvalitet:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: actions/setup-node@v1
with:
node-version: '16.x'
- run: npm ci --no-build
- run: npm test


Eslint:
runs-on: ubuntu-latest
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,19 @@ jobs:
Kodekvalitet:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: actions/setup-node@v1
with:
node-version: '16.x'
- run: npm ci --no-build
- run: npm test
- run: node run-sonar.js
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

Eslint:
runs-on: ubuntu-latest
Expand Down
34 changes: 17 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@
"react-app-polyfill": "^3.0.0",
"react-day-picker": "^7.4.10",
"react-dom": "^17.0.2",
"react-hook-form": "^7.26.1",
"react-hook-form": "^7.30.0",
"react-i18next": "^11.16.9",
"react-modal": "^3.14.4",
"react-modal": "^3.15.1",
"react-number-format": "^4.9.1",
"react-router-dom": "^5.3.0",
"typescript": "^4.6.2",
Expand Down
16 changes: 0 additions & 16 deletions run-sonar.js

This file was deleted.

15 changes: 15 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
sonar.projectKey=navikt_sporenstreks-frontend
sonar.organization=navikt

# This is the name and version displayed in the SonarCloud UI.
#sonar.projectName=sporenstreks-frontend
#sonar.projectVersion=1.0

# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
#sonar.sources=.

# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8
sonar.sources=src,
sonar.javascript.lcov.reportPaths=coverage/lcov.info,
sonar.coverage.exclusions=**/*.test.t*, src/setupTests.js