-
Notifications
You must be signed in to change notification settings - Fork 2
67 lines (61 loc) · 1.73 KB
/
snapshot_tests.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Snapshot Tests
on:
push:
branches:
- 'main'
pull_request:
types: [opened, synchronize, reopened]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
test:
name: Snapshot Tests
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Restore Cache Pods
id: restore-cache-pods
uses: actions/cache/restore@v3
env:
cache-name: cache-pods
with:
path: |
~/.cocoapods
Tests/Pods
Tests/Podfile.lock
key: ${{ runner.os }}-snapshot-tests-${{ env.cache-name }}
- name: Restore Cache Bazel output
id: restore-cache-bazel-output
uses: actions/cache/restore@v3
env:
cache-name: cache-bazel-output
with:
path: bazel-output-base
key: ${{ runner.os }}-snapshot-tests-${{ env.cache-name }}
- name: make bootstrap
run: make bootstrap
- name: make tests
run: make tests
- name: Save Cache Pods
id: save-cache-pods
uses: actions/cache/save@v3
if: always()
env:
cache-name: cache-pods
with:
path: |
~/.cocoapods
Tests/Pods
Tests/Podfile.lock
key: ${{ steps.restore-cache-pods.outputs.cache-primary-key }}
- name: Save Cache Bazel output
id: save-cache-bazel-output
uses: actions/cache/save@v3
if: always()
env:
cache-name: cache-bazel-output
with:
path: bazel-output-base
key: ${{ steps.restore-cache-bazel-output.outputs.cache-primary-key }}