mirror of
https://github.com/MessageKit/MessageKit.git
synced 2026-02-06 19:03:19 +00:00
32 lines
1.0 KiB
YAML
32 lines
1.0 KiB
YAML
name: PR Example app
|
|
|
|
on: pull_request
|
|
|
|
jobs:
|
|
tests:
|
|
name: Build Example app
|
|
runs-on: macOS-latest
|
|
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
|