Skip to content

Commit 2174625

Browse files
committed
Enforce code style
Signed-off-by: Ilya Leoshkevich <[email protected]>
1 parent ad01dcc commit 2174625

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/workflows/lint.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
pull_request:
6+
7+
jobs:
8+
lint:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Install packages
13+
run: sudo apt-get update && sudo apt-get install -y shellcheck shfmt
14+
- name: Lint
15+
run: ./lint

lint

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
set -e -u -x
3+
scripts=(
4+
dotnet-build
5+
dotnet-bump
6+
dotnet-cleanup
7+
dotnet-daily
8+
dotnet-prepare
9+
dotnet-release
10+
dotnet-test-sdk
11+
lint
12+
)
13+
shfmt -d -i 4 "${scripts[@]}"
14+
shellcheck -x "${scripts[@]}"

0 commit comments

Comments
 (0)