Skip to content

Commit bfad972

Browse files
committed
update ci steps
1 parent 66754e2 commit bfad972

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
name: Test
2-
1+
name: Run Checks
32
on:
43
pull_request:
4+
branches:
5+
- '**'
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
510

611
jobs:
712
build:
@@ -10,6 +15,27 @@ jobs:
1015
- name: 'Checkout'
1116
uses: actions/checkout@v5
1217

18+
- name: Set up JDK 17
19+
uses: actions/setup-java@v4
20+
with:
21+
java-version: '17'
22+
distribution: 'temurin'
23+
24+
- name: Setup Homebrew
25+
uses: Homebrew/actions/setup-homebrew@main
26+
27+
- name: Setup Clang
28+
uses: tecolicom/actions-use-homebrew-tools@v1
29+
with:
30+
tools: clang-format
31+
cache: yes
32+
33+
- name: Link clang-format
34+
run: |
35+
brew link --overwrite --force clang-format >/dev/null
36+
export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"
37+
clang-format --version
38+
1339
- name: 'Setup Bun'
1440
uses: oven-sh/setup-bun@v2
1541
with:

0 commit comments

Comments
 (0)