Skip to content

Commit

Permalink
chore(actions): fix lint (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts authored Dec 2, 2021
1 parent 564b627 commit 481413b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/client_javascript.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
name: client_javascript

on:
workflow_run:
workflows: ['specs']
types:
- completed
on: [push]

jobs:
build:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -41,10 +36,3 @@ jobs:

- name: Lint
run: yarn lint

build-failure:
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
runs-on: ubuntu-latest
steps:
- name: Error on `specs` workflow
run: exit 1
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,15 @@
"client:build-js:recommend": "yarn workspace @algolia/recommend build",
"client:build-js": "yarn client:build-js:search && yarn client:build-js:recommend",
"client:build": "yarn client:build-js",
"lint:fix": "yarn lint --fix",
"lint": "eslint --ext .ts .",
"lint:client:fix": "yarn prettier --write ${CLIENT} && eslint --ext=ts ${CLIENT} --fix",
"lint": "eslint --ext=ts .",
"format:specs": "yarn prettier --write specs",
"generate:js:recommend": "yarn openapi-generator-cli generate --generator-key javascript-recommend && CLIENT=recommend yarn utils:import-js && yarn prettier --write clients/algoliasearch-client-javascript/recommend/",
"generate:js:search": "yarn openapi-generator-cli generate --generator-key javascript-client-search && CLIENT=client-search yarn utils:import-js && yarn prettier --write clients/algoliasearch-client-javascript/client-search/",
"generate:js:recommend": "yarn openapi-generator-cli generate --generator-key javascript-recommend && CLIENT=recommend yarn utils:import-js && CLIENT=clients/algoliasearch-client-javascript/recommend/ yarn lint:client:fix",
"generate:js:search": "yarn openapi-generator-cli generate --generator-key javascript-client-search && CLIENT=client-search yarn utils:import-js && CLIENT=clients/algoliasearch-client-javascript/client-search/ yarn lint:client:fix",
"generate:js": "yarn generate:js:search && yarn generate:js:recommend",
"generate:recommend": "yarn generate:js:recommend",
"generate:search": "yarn generate:js:search",
"generate": "yarn generate:js && yarn post:generate",
"post:generate": "yarn format:specs && yarn lint:fix",
"generate": "yarn generate:js && yarn format:specs",
"playground:js:search": "yarn workspace javascript-playground start:search",
"playground:js:recommend": "yarn workspace javascript-playground start:recommend",
"utils:import-js": "mkdir -p -- clients/algoliasearch-client-javascript/${CLIENT}/utils && cp -R clients/algoliasearch-client-javascript/utils/ clients/algoliasearch-client-javascript/${CLIENT}/utils",
Expand Down

0 comments on commit 481413b

Please sign in to comment.