Skip to content

Commit 48eca9d

Browse files
committed
Add to CI
1 parent ae8b84e commit 48eca9d

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Lint trailing whitespaces
2+
3+
on:
4+
pull_request:
5+
branches: ["main"]
6+
workflow_dispatch:
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
lint-whitespaces:
14+
name: Lint trailing whitespaces
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v6
18+
- name: Lint trailing whitespaces
19+
run: bash ./scripts/lintWhitespace.sh

scripts/lintWhitespace.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
tmpfile=$(mktemp)
44
issues_found=0

0 commit comments

Comments
 (0)