validations.yml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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-12
  13. steps:
  14. - uses: maxim-lobanov/setup-xcode@v1.5.1
  15. with:
  16. xcode-version: ^14.1
  17. - uses: actions/checkout@v3
  18. # watchOS is causing problems with the simulator.
  19. # TODO: Remove platforms parameter and additional linting step
  20. # once the issue is fixed (by either CocoaPods or Apple)
  21. - run: pod lib lint --platforms=macos,ios,tvos
  22. - run: pod lib lint --platforms=watchos
  23. continue-on-error: true
  24. run-danger:
  25. runs-on: ubuntu-latest
  26. if: ${{ github.event_name == 'pull_request_target' }}
  27. steps:
  28. - uses: actions/checkout@v3
  29. with:
  30. fetch-depth: 0
  31. - name: danger/swift
  32. uses: docker://ghcr.io/danger/danger-swift-with-swiftlint:3.14.2
  33. with:
  34. args: --failOnErrors --no-publish-check
  35. env:
  36. GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}