Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: include .yml files when preparing for Vale. #660

Merged
merged 1 commit into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tools/src/prepare-for-vale/KeepDescriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default class KeepDescriptions {

process(): void {
this.root_folder
const files = fg.globSync([`${this.root_folder}/**/*.yaml`])
const files = fg.globSync([`${this.root_folder}/**/*.{yaml,yml}`])
files.forEach((path) => {
this.logger.log(path)
this.process_file(path)
Expand Down
2 changes: 1 addition & 1 deletion tools/tests/prepare-for-vale/KeepDescriptions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import tmp from 'tmp'
describe('KeepDescriptions', () => {
var temp: tmp.DirResult
var fixture_path: string = './tools/tests/prepare-for-vale/fixtures'
var fixtures = fg.globSync(`${fixture_path}/**/*.yaml`)
var fixtures = fg.globSync(`${fixture_path}/**/*.{yaml,yml}`)

describe('defaults', () => {
beforeAll(() => {
Expand Down
11 changes: 11 additions & 0 deletions tools/tests/prepare-for-vale/fixtures/docker-compose.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@











12 changes: 12 additions & 0 deletions tools/tests/prepare-for-vale/fixtures/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: '3'

services:
opensearch-cluster:
image: ${OPENSEARCH_DOCKER_HUB_PROJECT:-opensearchproject}/opensearch:${OPENSEARCH_VERSION:-latest}${OPENSEARCH_DOCKER_REF}
ports:
- 9200:9200
- 9600:9600
environment:
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=${OPENSEARCH_PASSWORD:-myStrongPassword123!}
- OPENSEARCH_JAVA_OPTS=${OPENSEARCH_JAVA_OPTS}
- discovery.type=single-node
Loading