Skip to content

copyright checker: fix C/C++ template #15

copyright checker: fix C/C++ template

copyright checker: fix C/C++ template #15

Workflow file for this run

# *******************************************************************************
# Copyright (c) 2025 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
name: Formatting checks
on:
pull_request:
types: [opened, reopened, synchronize]
merge_group:
types: [checks_requested]
jobs:
formatting-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Cache Bazel
uses: actions/cache@v4
with:
path: ~/.cache/bazel
key: ${{ runner.os }}-format-${{ hashFiles('**/*.bazel', '**/BUILD', '**/*.bzl') }}
- name: Setup Bazel with cache
uses: bazel-contrib/[email protected]
with:
disk-cache: true
repository-cache: true
bazelisk-cache: true
- name: Run formatting checks
run: |
bazel test //:format.check