Skip to content

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

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

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

---
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@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3.8.2
with:
node-version: 18
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn --cwd web run build
prettier:
name: Validate web formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3.8.2
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@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
with:
script: |
core.setFailed('web/ contains unformatted code, run `pnpm prettier . --write` and re-commit!')