forked from MessageKit/MessageKit
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 1.02 KB
/
ci_pr_example.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
name: Build Example app
on: pull_request
jobs:
tests:
name: Build Example app
runs-on: macOS-11
steps:
- name: Checkout the Git repository
uses: actions/checkout@v2
- name: Cache Pods
uses: actions/cache@v1
with:
path: Example/Pods
key: ${{ runner.os }}-example-${{ env.cache-name }}-pods-${{ hashFiles('**/Example/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-example-${{ env.cache-name }}-pods-
${{ runner.os }}-example-${{ env.cache-name }}-
${{ runner.os }}-example-
- name: Cache Gems
uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-example-${{ env.cache-name }}-gems-${{ hashFiles('**/Example/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-example-${{ env.cache-name }}-gems-
${{ runner.os }}-example-${{ env.cache-name }}-
${{ runner.os }}-example-
- name: Build and run example project
run: ./GitHubActions/build.sh example