Skip to content

chore(deps): update all dependencies (patch only) #86

chore(deps): update all dependencies (patch only)

chore(deps): update all dependencies (patch only) #86

---
name: web
on:
pull_request:
paths:
- ".github/workflows/pr_cockpit-web.yml"
- "package.json"
- "yarn.lock"
- "web/**"
jobs:
build-web:
name: Web frontend built
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: 18
cache: yarn
- 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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- 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
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: 18
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn --cwd web run format --check
- name: Git Diff showed uncommitted changes
if: ${{ failure() }}
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
script: |
core.setFailed('web/ contains unformatted code, run `yarn --cwd web run format --write` and re-commit!')