Skip to content

Commit

Permalink
build: add incremental clang-format checks
Browse files Browse the repository at this point in the history
PR-URL: #819
Reviewed-By: Gabriel Schulhof <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
  • Loading branch information
legendecas authored and Gabriel Schulhof committed Nov 17, 2020
1 parent 2c02d31 commit 8fb5820
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Style Checks

on: [push, pull_request]

jobs:
lint:
strategy:
matrix:
node-version: [14.x]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- run: git branch -a
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: CLANG_FORMAT_START=refs/remotes/origin/master npm run lint
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ script:
# Travis CI sets NVM_NODEJS_ORG_MIRROR, but it makes node-gyp fail to download headers for nightly builds.
- unset NVM_NODEJS_ORG_MIRROR

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

0 comments on commit 8fb5820

Please sign in to comment.