mirror of
https://github.com/TextureGroup/Texture.git
synced 2026-04-07 19:17:39 +00:00
Turned out that @babel/plugin-transform-flow-strip-types is needed for TypeScript/Bale transpilation with we don't need because we use JS. So instead of installing the module, we can. just disable transpilation by DANGER_DISABLE_TRANSPILATION environment variable to true. Test plan: Tested manually here: https://github.com/TextureGroup/Texture/commit/a4cfe347914c23aafe08603bf82372d4cb94136c/checks
29 lines
946 B
YAML
29 lines
946 B
YAML
name: Danger
|
|
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
danger:
|
|
name: Danger JS
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout the Git repository
|
|
uses: actions/checkout@v1
|
|
# TODO: Figure out why GITHUB_TOKEN isn't enough for Danger JS to create a comment.
|
|
# Our dangerfile.js escalates any warnings as failures to get more attention.
|
|
#
|
|
# Here is the error response from GitHub API:
|
|
#
|
|
# Request failed [403]: https://api.github.com/repos/TextureGroup/Texture/issues/1635/comments
|
|
# Response: {
|
|
# "message": "Resource not accessible by integration",
|
|
# "documentation_url": "https://developer.github.com/v3/issues/comments/#create-a-comment"
|
|
# }
|
|
#
|
|
# https://github.com/TextureGroup/Texture/pull/1635/checks?check_run_id=200541353
|
|
- name: Danger
|
|
uses: danger/danger-js@9.1.8
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
DANGER_DISABLE_TRANSPILATION: true
|