Skip to content

chore(deps): update actions/github-script action to v7 #70

chore(deps): update actions/github-script action to v7

chore(deps): update actions/github-script action to v7 #70

Workflow file for this run

---
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@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- 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@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- 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@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
script: |
core.setFailed('web/ contains unformatted code, run `pnpm prettier . --write` and re-commit!')