mirror of
https://github.com/zed-industries/zed.git
synced 2026-08-23 16:04:45 +00:00
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
# Generated from xtask::workflows::danger
|
|
# Rebuild with `cargo xtask workflows`.
|
|
name: danger
|
|
on:
|
|
merge_group: {}
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
- reopened
|
|
- edited
|
|
branches:
|
|
- main
|
|
permissions:
|
|
contents: read
|
|
jobs:
|
|
danger:
|
|
if: (github.repository_owner == 'zed-industries' || github.repository_owner == 'zed-extensions')
|
|
runs-on: namespace-profile-2x4-ubuntu-2404
|
|
steps:
|
|
- name: steps::checkout_repo
|
|
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
|
|
with:
|
|
clean: false
|
|
- name: steps::setup_pnpm
|
|
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320
|
|
with:
|
|
version: '9'
|
|
- name: steps::setup_node
|
|
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
|
|
with:
|
|
node-version: '24'
|
|
check-latest: true
|
|
package-manager-cache: false
|
|
cache: pnpm
|
|
cache-dependency-path: script/danger/pnpm-lock.yaml
|
|
- name: danger::danger_job::install_deps
|
|
run: pnpm install --dir script/danger
|
|
- name: danger::danger_job::run
|
|
run: pnpm run --dir script/danger danger ci
|
|
env:
|
|
GITHUB_TOKEN: not_a_real_token
|
|
DANGER_GITHUB_API_BASE_URL: https://danger-proxy.zed.dev/github
|
|
defaults:
|
|
run:
|
|
shell: bash -euxo pipefail {0}
|