spm.yml 538 B

1234567891011121314151617181920212223
  1. name: spm
  2. on:
  3. pull_request:
  4. paths:
  5. - '.github/workflows/spm.yml'
  6. - 'Package.swift'
  7. - 'Firebase**'
  8. schedule:
  9. # Run every day at 11pm (PST) - cron uses UTC times
  10. - cron: '0 7 * * *'
  11. jobs:
  12. swift-build-run:
  13. # Don't run on private repo unless it is a PR.
  14. if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
  15. runs-on: macOS-latest
  16. steps:
  17. - uses: actions/checkout@v2
  18. - name: Build
  19. run: swift build
  20. - name: Run
  21. run: swift test