mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-26 02:47:17 +00:00
feat: Use GitHub actions for linting (#1927)
This commit is contained in:
parent
3a132792e7
commit
fb05c2d80f
3 changed files with 17 additions and 2 deletions
17
.github/workflows/lint.yml
vendored
Normal file
17
.github/workflows/lint.yml
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
name: Lint
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Use Node.js 12
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12
|
||||
- name: npm install
|
||||
run: npm install
|
||||
- name: npm run lint
|
||||
run: npm run lint
|
||||
|
|
@ -69,7 +69,6 @@ install:
|
|||
- npm run rebuild
|
||||
|
||||
script:
|
||||
- npm run lint
|
||||
- npm test
|
||||
|
||||
# if publishing, do it
|
||||
|
|
|
|||
|
|
@ -47,7 +47,6 @@ build_script:
|
|||
- npm run rebuild
|
||||
|
||||
test_script:
|
||||
- npm run lint
|
||||
- npm test
|
||||
|
||||
- ps: >
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue