Skip to content

Commit 8fb5820

Browse files
legendecasGabriel Schulhof
authored andcommitted
build: add incremental clang-format checks
PR-URL: #819 Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
1 parent 2c02d31 commit 8fb5820

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/workflows/linter.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Style Checks
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
lint:
7+
strategy:
8+
matrix:
9+
node-version: [14.x]
10+
os: [ubuntu-latest]
11+
12+
runs-on: ${{ matrix.os }}
13+
steps:
14+
- uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0
17+
- run: git branch -a
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
- run: npm install
23+
- run: CLANG_FORMAT_START=refs/remotes/origin/master npm run lint

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ script:
5454
# Travis CI sets NVM_NODEJS_ORG_MIRROR, but it makes node-gyp fail to download headers for nightly builds.
5555
- unset NVM_NODEJS_ORG_MIRROR
5656

57-
- npm run lint
5857
- npm test
5958
after_success:
6059
- cpp-coveralls --gcov-options '\-lp' --build-root test/build --exclude test

0 commit comments

Comments
 (0)