mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 19:02:07 +00:00
e20db039d6
This PR upgrades the `pnpm/action-setup` GitHub Action to v4.0.0. Trying to see if I can fix the Renovate warning stemming from https://github.com/pnpm/action-setup/issues/95. Release Notes: - N/A
41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
name: Danger
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
- reopened
|
|
- edited
|
|
|
|
jobs:
|
|
danger:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
|
|
|
|
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
|
|
with:
|
|
version: 9
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
|
|
with:
|
|
node-version: "20"
|
|
cache: "pnpm"
|
|
cache-dependency-path: "script/danger/pnpm-lock.yaml"
|
|
|
|
- run: pnpm install --dir script/danger
|
|
|
|
- name: Run Danger
|
|
run: pnpm run --dir script/danger danger ci
|
|
env:
|
|
# This GitHub token is not used, but the value needs to be here to prevent
|
|
# Danger from throwing an error.
|
|
GITHUB_TOKEN: "not_a_real_token"
|
|
# All requests are instead proxied through an instance of
|
|
# https://github.com/maxdeviant/danger-proxy that allows Danger to securely
|
|
# authenticate with GitHub while still being able to run on PRs from forks.
|
|
DANGER_GITHUB_API_BASE_URL: "https://danger-proxy.fly.dev/github"
|