Skip to content

Commit cc1982d

Browse files
committed
feat: Add common CI checks to be shared by all repos.
1 parent 4858608 commit cc1982d

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: ci
2+
3+
on:
4+
pull_request:
5+
branches: [master]
6+
7+
jobs:
8+
common:
9+
uses: TokTok/ci-tools/.github/workflows/common-ci.yml@master

.github/workflows/common-ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
on: [workflow_call]
2+
3+
jobs:
4+
buildifier:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
with:
9+
submodules: recursive
10+
- name: Install
11+
run: |
12+
wget -O buildifier https://github.com/bazelbuild/buildtools/releases/download/4.2.4/buildifier-linux-amd64
13+
chmod +x buildifier
14+
- name: Check
15+
run: ./buildifier --lint=warn --warnings=all -mode diff $(find . -type f -name "WORKSPACE" -or -name "BUILD.*")

0 commit comments

Comments
 (0)