-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (40 loc) · 1.05 KB
/
sources.yml
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
42
name: Build and Test Sources
on:
push:
branches:
- main
pull_request:
branches:
- main
- develop
jobs:
test:
name: "Build Sources"
runs-on: macos-14
steps:
- uses: actions/checkout@v3
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Install Java17
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "17"
- name: Install xcpretty
run: bundle install
- name: Setup Firebase Emulator
working-directory: ./firebase
run: ./emulator_setup.sh &
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
- name: Wait firebase_emulator_setup
working-directory: ./firebase
run: ./wait_firebase_emulator_setup.sh
- name: Build and Test
run: |
set -o pipefail && \
swift build && \
swift test
- name: Kill firebase_emulator process
run: kill `cat /tmp/firebase_emulator_pid.pid` &>/dev/null