Skip to content

Bump eslint from 8.57.0 to 9.15.0 #1609

Bump eslint from 8.57.0 to 9.15.0

Bump eslint from 8.57.0 to 9.15.0 #1609

Workflow file for this run

name: Bygg pull request
on:
pull_request:
branches:
- main
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
jobs:
Bygg:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v4
with:
node-version: '22.6'
cache: 'yarn'
registry-url: 'https://npm.pkg.github.com'
- run: yarn install --immutable
- run: yarn build
- uses: actions/upload-artifact@v4
with:
name: spinntektsmelding-frontend-artifact
path: ${{ github.workspace }}/build/**/*
Kodekvalitet:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v4
with:
node-version: '22.6'
cache: 'yarn'
registry-url: 'https://npm.pkg.github.com'
- run: yarn install --immutable
- run: yarn test
- name: SonarCloud Scan
if: ${{ github.actor != 'dependabot[bot]' }}
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v4
with:
node-version: '22.6'
cache: 'yarn'
registry-url: 'https://npm.pkg.github.com'
- run: yarn install --immutable
- run: yarn lint
Knip:
if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
continue-on-error: true
permissions:
checks: write
issues: write
pull-requests: write
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v4
with:
node-version: '22.6'
cache: 'yarn'
registry-url: 'https://npm.pkg.github.com'
- name: Install dependencies
run: yarn install --immutable
- uses: codex-/knip-reporter@v2