Skip to content

restricting dirs

restricting dirs #11

Workflow file for this run

name: CI
on:
push:
pull_request:
branches: [main]
workflow_dispatch:
concurrency:
# Cancel previous actions from the same PR: https://stackoverflow.com/a/72408109
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
format:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bazel
uses: bazel-contrib/[email protected]
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
bazelrc: |
build --color=yes
build --show_timestamps
- run: touch /tmp/pre_fmt
- name: Format Repository
run: bazel run //:format
- name: Detect Diff
run: find ./config ./src ./tools -newer /tmp/pre_fmt