-
Notifications
You must be signed in to change notification settings - Fork 1.7k
41 lines (38 loc) · 1.27 KB
/
infra.samples.watchos.yml
File metadata and controls
41 lines (38 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: infra.samples.watchos
on:
workflow_dispatch:
pull_request:
paths:
# Sources
- 'FirebaseABTesting/**'
- 'FirebaseDatabase/**'
- 'FirebaseRemoteConfig/**'
- 'FirebaseStorage/**'
# Sample
- 'Example/watchOSSample/**'
# Firebase Podspec
- 'Firebase.podspec'
# This file
- '.github/workflows/infra.samples.watchos.yml'
# Rebuild on Ruby infrastructure changes
- 'Gemfile*'
schedule:
# Run every day at 11pm (PDT) / 2am (EDT) - cron uses UTC times
- cron: '0 6 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
watchos-sample-build-test:
# Don't run on private repo unless it is a PR.
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
runs-on: macos-14
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
- name: Setup Bundler
run: scripts/setup_bundler.sh
- name: Prereqs
run: scripts/install_prereqs.sh WatchOSSample watchOS
- name: Build
run: ([ -z $plist_secret ] || scripts/build.sh WatchOSSample watchOS)