forked from bitdriftlabs/capture-sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (28 loc) · 848 Bytes
/
format.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: format_check
on:
push:
branches:
- main
pull_request:
# Cancel in-progress CI jobs when a new commit is pushed to a PR.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
format_check:
runs-on: ubuntu-22.04
steps:
# --- Build the project for release
# Checkout repo to Github Actions runner
- name: Checkout
uses: actions/checkout@v4
- name: install formatters
run: ./ci/setup_linux_format.sh
- name: configure bazelrc
run: mkdir tmp/ && echo "build --config=ci" > tmp/ci-bazelrc
- name: test
run: PATH=./bin:./bin:$PATH make format
- name: check diff
run: git --no-pager diff && git diff --quiet
- name: Check license headers
run: ci/check_license.sh