2022-07-29 16:00:49 +08:00
|
|
|
name: Danger CI
|
|
|
|
|
|
|
|
on: [pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Danger
|
|
|
|
steps:
|
2024-07-16 00:12:08 +08:00
|
|
|
- uses: actions/checkout@v4
|
2022-07-29 16:00:49 +08:00
|
|
|
- run: |
|
|
|
|
npm install --save-dev @babel/plugin-transform-flow-strip-types
|
|
|
|
- name: Danger
|
2023-04-18 07:56:47 +08:00
|
|
|
uses: danger/danger-js@11.2.6
|
2022-07-29 16:00:49 +08:00
|
|
|
with:
|
2022-12-08 17:48:17 +08:00
|
|
|
args: "--dangerfile ./tools/danger/dangerfile.js"
|
2022-07-29 16:00:49 +08:00
|
|
|
env:
|
|
|
|
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
|
2022-08-17 19:08:26 +08:00
|
|
|
# Fallback for forks
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|