Skip to content

Commit 70f041f

Browse files
authored
feat(specs): improve specs consistency (#51)
1 parent 81d5915 commit 70f041f

File tree

150 files changed

+920
-1983
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+920
-1983
lines changed

.eslintrc.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,37 @@ module.exports = {
55
'plugin:import/errors',
66
'plugin:import/warnings',
77
'plugin:import/typescript',
8+
'plugin:yml/standard',
9+
],
10+
11+
// yml linter
12+
overrides: [
13+
{
14+
files: ['*.yml'],
15+
parser: 'yaml-eslint-parser',
16+
rules: {
17+
'@typescript-eslint/naming-convention': 0,
18+
'yml/quotes': [
19+
2,
20+
{
21+
prefer: 'single',
22+
avoidEscape: true,
23+
},
24+
],
25+
'yml/no-multiple-empty-lines': [
26+
2,
27+
{
28+
max: 1,
29+
maxEOF: 0,
30+
maxBOF: 0,
31+
},
32+
],
33+
'yml/require-string-key': 2,
34+
35+
// Should be removed once the specs are finished
36+
'yml/no-empty-document': 0,
37+
},
38+
},
839
],
940

1041
env: {

.github/actions/cache/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Cache
33
description: Restore cached dependencies.
44

55
runs:
6-
using: 'composite'
6+
using: composite
77
steps:
88
- name: Get yarn cache directory path
99
shell: bash
@@ -26,5 +26,5 @@ runs:
2626
- name: Restore maven dependencies
2727
uses: actions/cache@v2
2828
with:
29-
path: '~/.m2/repository'
29+
path: ~/.m2/repository
3030
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}

.github/actions/setup/action.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Setup
33
description: Setup CI environment.
44

55
runs:
6-
using: 'composite'
6+
using: composite
77
steps:
88
- name: Restore cache
99
uses: ./.github/actions/cache
@@ -15,18 +15,14 @@ runs:
1515
- name: Install Java
1616
uses: actions/setup-java@v2
1717
with:
18-
distribution: 'zulu'
19-
java-version: '11.0.4'
18+
distribution: zulu
19+
java-version: 11.0.4
2020

2121
- name: Install Node
2222
uses: actions/setup-node@v2
2323
with:
24-
node-version-file: '.nvmrc'
24+
node-version-file: .nvmrc
2525

2626
- name: Install JavaScript Dependencies
2727
shell: bash
2828
run: yarn install
29-
30-
- name: Install spec linter
31-
shell: bash
32-
run: sudo apt-get -y install yamllint

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run: yarn build:specs analytics
3838

3939
- name: Lint
40-
run: yamllint specs
40+
run: yarn specs:lint
4141

4242
client_javascript:
4343
runs-on: ubuntu-20.04

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM node:$NODE_VERSION-alpine
44

55
ENV DOCKER=true
66

7-
RUN apk add openjdk11 maven jq bash yamllint perl curl
7+
RUN apk add openjdk11 maven jq bash perl curl
88

99
WORKDIR /app
1010

clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AssignUserIdResponse.java

Lines changed: 0 additions & 77 deletions
This file was deleted.

clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/BatchAssignUserIdsResponse.java

Lines changed: 0 additions & 77 deletions
This file was deleted.

clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/ClearAllSynonymsResponse.java

Lines changed: 0 additions & 109 deletions
This file was deleted.

0 commit comments

Comments
 (0)