forked from MacDownApp/macdown
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (51 loc) · 1.66 KB
/
Copy pathtests.yml
File metadata and controls
62 lines (51 loc) · 1.66 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Tests
# Replaces the old .travis.yml. Travis CI's free macOS build queue for open
# source projects has been effectively dead for years, and the pinned
# osx_image (xcode10.1) predates this project's current
# MACOSX_DEPLOYMENT_TARGET (12.0) by several major Xcode/macOS releases --
# the check would never realistically complete on current infrastructure.
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Cache Bundler gems
uses: actions/cache@v4
with:
path: vendor/bundle
key: ${{ runner.os }}-bundler-${{ hashFiles('Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-bundler-
- name: Cache CocoaPods
uses: actions/cache@v4
with:
path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: Install Ruby dependencies
run: |
bundle config set path 'vendor/bundle'
bundle install
- name: Install CocoaPods dependencies
run: bundle exec pod install
- name: Build peg-markdown-highlight
run: make -C Dependency/peg-markdown-highlight
- name: Install xcpretty
run: gem install xcpretty --no-document
- name: Run tests
run: |
set -o pipefail
xcodebuild \
-workspace MacDown.xcworkspace \
-scheme MacDown \
-destination 'platform=macOS' \
test | xcpretty