validations.yml 777 B

1234567891011121314151617181920212223242526272829303132333435
  1. name: Validations
  2. on:
  3. push:
  4. branches: [ master ]
  5. pull_request_target:
  6. branches: [ master ]
  7. env:
  8. LC_CTYPE: en_US.UTF-8
  9. LANG: en_US.UTF-8
  10. jobs:
  11. validate-cocoapods:
  12. runs-on: macos-13
  13. steps:
  14. - uses: maxim-lobanov/setup-xcode@v1
  15. with:
  16. xcode-version: ^14.3
  17. - uses: actions/checkout@v3
  18. - run: pod lib lint
  19. run-danger:
  20. runs-on: ubuntu-latest
  21. if: ${{ github.event_name == 'pull_request_target' }}
  22. steps:
  23. - uses: actions/checkout@v3
  24. with:
  25. fetch-depth: 0
  26. - name: danger/swift
  27. uses: docker://ghcr.io/danger/danger-swift-with-swiftlint:3.15.0
  28. with:
  29. args: --failOnErrors --no-publish-check
  30. env:
  31. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}