Skip to content

Commit

Permalink
Update ESLint workflow step
Browse files Browse the repository at this point in the history
  • Loading branch information
Techassi committed May 15, 2024
1 parent dababc4 commit 3437844
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/pr_cockpit-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@ jobs:
- run: yarn install --frozen-lockfile
- run: yarn --cwd web run build

eslint:
name: Run web linting via ESLint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
with:
node-version: 18
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn --cwd web run lint

prettier:
name: Validate web formatting
runs-on: ubuntu-latest
Expand All @@ -37,4 +49,4 @@ jobs:
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
script: |
core.setFailed('web/ contains unformatted code, run `pnpm prettier . --write` and re-commit!')
core.setFailed('web/ contains unformatted code, run `yarn --cwd web run format --write` and re-commit!')
13 changes: 0 additions & 13 deletions .github/workflows/pr_reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,6 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
with:
version: 7.26.1
run_install: true
- uses: reviewdog/action-eslint@423672b7acbb75ee34d3e37aff30949ddc8350e3 # v1.24.0
with:
workdir: web
github_token: ${{ secrets.GITHUB_TOKEN }}

flake8:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 3437844

Please sign in to comment.