| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- name: check
- on:
- 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@v4
-
- - uses: actions/setup-python@v5
- with:
- python-version: 3.11
- # clang-format is available on ubuntu images
- # - name: Install clang-format
- # run: |
- # sudo apt-get update -y
- # sudo apt-get install -y clang-format
-
- - name: Install mint
- run: |
- eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
- # echo "/home/linuxbrew/.linuxbrew/bin/brew" >> $GITHUB_ENV
- brew install mint
-
- brew install clang-format@20
- echo 'export PATH="/home/linuxbrew/.linuxbrew/opt/clang-format/bin:$PATH"' >> /home/runner/.bash_profile
- # sudo apt-get update -y
- # sudo apt-get install -y mint
- # Install clang-format and mint using apt-get
- - name: Cache Mint packages
- uses: actions/cache@v4
- 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: scripts/check.sh --test-only
|