-
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1.04 KB
/
build-and-test.yml
File metadata and controls
40 lines (36 loc) · 1.04 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
#
# This source file is part of the CS342 Example Application based on the Stanford Spezi Template Application project
#
# SPDX-FileCopyrightText: 2025 Stanford University
#
# SPDX-License-Identifier: MIT
#
name: Build and Test
on:
pull_request:
workflow_dispatch:
workflow_call:
concurrency:
group: Build-and-Test-${{ github.ref }}
cancel-in-progress: true
jobs:
buildandtest:
name: Build and Test
uses: CS342/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
permissions:
contents: read
with:
artifactname: CS342ExampleApplication.xcresult
runsonlabels: '["macOS", "self-hosted"]'
setupfirebaseemulator: true
customcommand: "firebase emulators:exec 'fastlane test'"
uploadcoveragereport:
name: Upload Coverage Report
needs: buildandtest
uses: StanfordBDHG/.github/.github/workflows/create-and-upload-coverage-report.yml@v2
permissions:
contents: read
with:
coveragereports: CS342ExampleApplication.xcresult
secrets:
token: ${{ secrets.CODECOV_TOKEN }}