2024-01-29 19:58:24 +03:00
|
|
|
name: Danger
|
|
|
|
|
|
|
|
on:
|
2024-02-05 23:26:56 +03:00
|
|
|
pull_request:
|
|
|
|
branches: [main]
|
|
|
|
types:
|
|
|
|
- opened
|
|
|
|
- synchronize
|
|
|
|
- reopened
|
|
|
|
- edited
|
2024-01-29 19:58:24 +03:00
|
|
|
|
|
|
|
jobs:
|
2024-02-05 23:26:56 +03:00
|
|
|
danger:
|
|
|
|
runs-on: ubuntu-latest
|
2024-01-29 19:58:24 +03:00
|
|
|
|
2024-02-05 23:26:56 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
2024-01-29 19:58:24 +03:00
|
|
|
|
2024-02-05 23:26:56 +03:00
|
|
|
- uses: pnpm/action-setup@v2.2.4
|
|
|
|
with:
|
|
|
|
version: 8
|
2024-01-29 19:58:24 +03:00
|
|
|
|
2024-02-05 23:26:56 +03:00
|
|
|
- name: Setup Node
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: "20"
|
|
|
|
cache: "pnpm"
|
|
|
|
cache-dependency-path: "script/danger/pnpm-lock.yaml"
|
2024-01-29 19:58:24 +03:00
|
|
|
|
2024-02-05 23:26:56 +03:00
|
|
|
- run: pnpm install --dir script/danger
|
2024-01-29 19:58:24 +03:00
|
|
|
|
2024-02-05 23:26:56 +03:00
|
|
|
- name: Run Danger
|
|
|
|
run: pnpm run --dir script/danger danger ci
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ github.token }}
|