Skip to content

Update pre-commit hook renovatebot/pre-commit-hooks to v39.100.1 #1256

Update pre-commit hook renovatebot/pre-commit-hooks to v39.100.1

Update pre-commit hook renovatebot/pre-commit-hooks to v39.100.1 #1256

Workflow file for this run

---
name: CI
on:
push:
branches: [main]
pull_request:
permissions: read-all
jobs:
test:
name: test (${{ matrix.bazel-version }}, ${{ matrix.os }}, ${{ matrix.external_dependency_system }})
runs-on: ${{ matrix.os }}-latest
env:
USE_BAZEL_VERSION: ${{ matrix.bazel-version }}
BUILDBUDDY_RW_API_KEY: ${{ secrets.BUILDBUDDY_RW_API_KEY }}
strategy:
fail-fast: false
matrix:
include:
- bazel-version: 6.x
os: ubuntu
external_dependency_system: bzlmod
flags: --enable_bzlmod
- bazel-version: 6.x
os: ubuntu
external_dependency_system: workspace
flags:
- bazel-version: 7.x
os: ubuntu
external_dependency_system: bzlmod
flags: --enable_bzlmod
- bazel-version: 7.x
os: ubuntu
external_dependency_system: workspace
flags:
- bazel-version: 7.x
os: macos
external_dependency_system: bzlmod
flags: --enable_bzlmod
- bazel-version: 7.x
os: macos
external_dependency_system: workspace
flags:
- bazel-version: 8.0.0rc4
os: ubuntu
external_dependency_system: bzlmod
flags:
- bazel-version: 8.0.0rc4
os: ubuntu
external_dependency_system: workspace
flags: --enable_workspace
- bazel-version: 8.0.0rc4
os: macos
external_dependency_system: bzlmod
flags:
steps:
- uses: actions/checkout@v4
- name: Use BuildBuddy RW API key instead of public readonly key
run: sed -i.bak 's#x-buildbuddy-api-key=.*#x-buildbuddy-api-key=${{ env.BUILDBUDDY_RW_API_KEY }}#' .bazelrc
if: ${{ env.BUILDBUDDY_RW_API_KEY }}
- run: echo "common ${{ matrix.flags }}" >> .bazelrc
# Don't want to bother with hundreds of lines of Workspace setup for the rules_pycross compat test
# Also, ignore https://github.com/jvolkman/rules_pycross/issues/128
- if: matrix.external_dependency_system == 'workspace' || matrix.os == 'macos' || matrix.bazel-version == '8.0.0rc4'
run: echo "tests/rules_pycross" >> .bazelignore
- run: bazel test //...
examples:
runs-on: ubuntu-latest
env:
USE_BAZEL_VERSION: ${{ matrix.bazel-version }}
strategy:
fail-fast: false
matrix:
bazel-version: [6.x, 7.x, 8.0.0rc4]
steps:
- uses: actions/checkout@v4
- run: examples/integration_test.sh
determinism:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: tests/determinism/reproducible_shas.sh
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]