Skip to content

Commit

Permalink
add lint check (Picovoice#827)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksyeo1010 authored Dec 1, 2022
1 parent 93f3501 commit fe28771
Show file tree
Hide file tree
Showing 49 changed files with 2,457 additions and 1,128 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/angular-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,8 @@ jobs:
- name: Install dependencies
run: yarn install

- name: Lint
run: yarn lint

- name: Build
run: yarn build
6 changes: 3 additions & 3 deletions .github/workflows/angular.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ jobs:
- name: Install dependencies
run: yarn install

- name: Build
run: yarn build porcupine-angular --prod

- name: Lint
run: yarn lint

- name: Build
run: yarn build porcupine-angular --prod
6 changes: 6 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ jobs:
- name: Install dependencies
run: yarn install

- name: Lint
run: yarn lint

- name: Test
run: yarn test test/index.test.ts --access_key=${{secrets.PV_VALID_ACCESS_KEY}}

Expand All @@ -77,5 +80,8 @@ jobs:
- name: Install dependencies
run: yarn install

- name: Lint
run: yarn lint

- name: Test
run: yarn test test/index.test.ts --access_key=${{secrets.PV_VALID_ACCESS_KEY}}
3 changes: 3 additions & 0 deletions .github/workflows/react-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,8 @@ jobs:
- name: Install dependencies
run: yarn install

- name: Lint
run: yarn lint

- name: Build
run: yarn build
45 changes: 45 additions & 0 deletions .github/workflows/react-native-demos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: React Native Demos

on:
workflow_dispatch:
push:
branches: [ master ]
paths:
- 'demo/react-native/**'
- '!demo/react-native/README.md'
- '.github/workflows/react-native-demos.yml'
pull_request:
branches: [ master ]
paths:
- 'demo/react-native/**'
- '!demo/react-native/README.md'
- '.github/workflows/react-native-demos.yml'

defaults:
run:
working-directory: demo/react-native

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x]

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Pre-build dependencies
run: npm install yarn

- name: Install dependencies
run: yarn install

- name: Lint
run: yarn lint
3 changes: 3 additions & 0 deletions .github/workflows/react-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,8 @@ jobs:
- name: Install dependencies
run: yarn install

- name: Lint
run: yarn lint

- name: Build
run: yarn
6 changes: 3 additions & 3 deletions .github/workflows/react.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ jobs:
- name: Install dependencies
run: yarn install

- name: Build
run: yarn build

- name: Lint
run: yarn lint

- name: Build
run: yarn build
3 changes: 3 additions & 0 deletions .github/workflows/vue-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,8 @@ jobs:
- name: Install dependencies
run: yarn install

- name: Lint
run: yarn lint

- name: Build
run: yarn build
3 changes: 3 additions & 0 deletions .github/workflows/vue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,8 @@ jobs:
- name: Install dependencies
run: yarn install

- name: Lint
run: yarn lint

- name: Build
run: yarn build
3 changes: 3 additions & 0 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ jobs:
- name: Copy libs
run: yarn copywasm && yarn copyppn

- name: Lint
run: yarn lint

- name: Build
run: yarn build

Expand Down
5 changes: 5 additions & 0 deletions binding/nodejs/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
dist
lib
resources
.eslintrc.js
Loading

0 comments on commit fe28771

Please sign in to comment.