Skip to content

infra: refactor Firestore workflows #393

infra: refactor Firestore workflows

infra: refactor Firestore workflows #393

Workflow file for this run

name: infra.check
on:
workflow_dispatch:
pull_request:
paths-ignore:
- 'Firestore/**'
push:
branches: main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
check:
# Don't run on private repo.
if: github.repository == 'Firebase/firebase-ios-sdk'
runs-on: ubuntu-latest
env:
MINT_PATH: ${{ github.workspace }}/mint
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
with:
python-version: 3.11
- name: Cache Mint packages
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
with:
path: ${{ env.MINT_PATH }}
key: ${{ runner.os }}-mint-${{ hashFiles('**/Mintfile') }}
restore-keys: ${{ runner.os }}-mint-
- name: Setup check
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
scripts/setup_check.sh
- name: Check
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
# Add Homebrew clang-format to first in PATH
export PATH="/home/linuxbrew/.linuxbrew/opt/clang-format/bin:$PATH"
scripts/check.sh --test-only