Skip to content

Add star request from logs (#152) #348

Add star request from logs (#152)

Add star request from logs (#152) #348

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
env:
GIT_CLONE_PROTECTION_ACTIVE: false
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 }}