Add CI check for mixed line endings
Trigger workflow on all file changes. Closes https://github.com/wxWidgets/wxWidgets/pull/2224
This commit is contained in:
committed by
Vadim Zeitlin
parent
7a74c0872c
commit
36ab71301c
33
.github/workflows/code_checks.yml
vendored
33
.github/workflows/code_checks.yml
vendored
@@ -5,25 +5,9 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- '.github/workflows/code_checks.yml'
|
||||
- 'docs/**'
|
||||
- 'include/**'
|
||||
- 'interface/**'
|
||||
- 'misc/suppressions/**'
|
||||
- '**/*.md'
|
||||
- '!docs/changes*txt'
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- '.github/workflows/code_checks.yml'
|
||||
- 'docs/**'
|
||||
- 'include/**'
|
||||
- 'interface/**'
|
||||
- 'misc/suppressions/**'
|
||||
- '**/*.md'
|
||||
- '!docs/changes*txt'
|
||||
|
||||
jobs:
|
||||
check-unix:
|
||||
@@ -66,3 +50,20 @@ jobs:
|
||||
':!**/*.sln' \
|
||||
':!**/*.vcproj' \
|
||||
':!**/*.xpm'
|
||||
|
||||
|
||||
check-mixed-eol:
|
||||
runs-on: ubuntu-20.04
|
||||
name: Check Mixed EOL
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install dos2unix
|
||||
run: |
|
||||
sudo apt-get install -y dos2unix
|
||||
|
||||
- name: Check for mixed EOL
|
||||
run: |
|
||||
./misc/scripts/check_mixed_eol.sh
|
||||
|
||||
Reference in New Issue
Block a user