dangerjs.yml 818 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: DangerJS Pull Request review
  2. on:
  3. pull_request_target:
  4. types: [opened, edited, reopened, synchronize]
  5. permissions:
  6. pull-requests: write
  7. contents: write
  8. jobs:
  9. danger-check:
  10. runs-on: ubuntu-latest
  11. defaults:
  12. run:
  13. working-directory: .github/dangerjs
  14. steps:
  15. - name: Check out PR head
  16. uses: actions/checkout@v3
  17. with:
  18. ref: ${{ github.event.pull_request.head.sha }}
  19. - name: Setup NodeJS environment
  20. uses: actions/setup-node@v3
  21. with:
  22. node-version: 18
  23. cache: npm
  24. cache-dependency-path: .github/dangerjs/package-lock.json
  25. - name: Install DangerJS dependencies
  26. run: npm install
  27. - name: Run DangerJS
  28. run: npx danger ci --failOnErrors -v
  29. env:
  30. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}