Skip to content

Commit 13f84b5

Browse files
committed
gha: add check
1 parent 9ada4ba commit 13f84b5

File tree

3 files changed

+33
-6
lines changed

3 files changed

+33
-6
lines changed

.github/workflows/checks.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: "Formatting checks"
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
types: [opened, synchronize, reopened, ready_for_review]
9+
10+
defaults:
11+
run:
12+
shell: bash
13+
14+
# Cancel previous running actions for the same PR
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
18+
19+
jobs:
20+
checks:
21+
if: github.event.pull_request.draft == false
22+
runs-on: ubuntu-24.04
23+
steps:
24+
- name: "Checkout code"
25+
uses: actions/checkout@v4
26+
- name: "Install clang-format"
27+
run: sudo apt install -y clang-format
28+
- name: "Run formatting checks"
29+
run: ./bin/invrs_wrapper.sh format-code --check

bin/inv_wrapper.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

bin/invrs_wrapper.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
set -e
3+
4+
source bin/workon.sh && invrs "$@"

0 commit comments

Comments
 (0)