-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (45 loc) · 1.48 KB
/
main.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
43
44
45
46
47
48
49
50
51
52
53
name: CI
# This workflow is triggered on pushes to the repository.
on:
push:
branches:
- master
pull_request:
types: [closed]
jobs:
build:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: Force xcode 11
run: sudo xcode-select -switch /Applications/Xcode_11.4.app
- name: Run tests
run: xcodebuild -project 'Stormy.xcodeproj' -scheme 'Stormy' -destination 'platform=iOS Simulator,name=iPhone 8,OS=13.4' test
- name: Build App
run: xcodebuild -project 'Stormy.xcodeproj' -scheme 'Stormy' -destination 'generic/platform=iOS' -configuration Release build CODE_SIGNING_ALLOWED=NO
dump:
runs-on: macOS-latest
steps:
- env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
weather:
runs-on: ubuntu-latest
env:
location: 37.8267,-122.423
lang: en
units: us
dark_sky_secret: ${{ secrets.dark_sky }}
steps:
- name: Current Weather
run: curl -s --url https://api.forecast.io/forecast/$dark_sky_secret/$location?lang=$lang&units=$units
pull_request_only:
runs-on: macOS-latest
if: github.event_name == 'pull_request'
needs: build
steps:
- uses: actions/checkout@v1
- name: Force xcode 11
run: sudo xcode-select -switch /Applications/Xcode_11.4.app
- name: Run tests
run: xcodebuild -project 'Stormy.xcodeproj' -scheme 'Stormy' -destination 'platform=iOS Simulator,name=iPhone 8,OS=13.4' test