Skip to content

Commit

Permalink
Fix: include .yml files when preparing for Vale. (#660)
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <dblock@amazon.com>
  • Loading branch information
dblock authored Nov 11, 2024
1 parent 62f1f5f commit a3b1804
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
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

0 comments on commit a3b1804

Please sign in to comment.