From 8b0ee8a4b6ea3283e8dd67548715a38fce32cf86 Mon Sep 17 00:00:00 2001 From: Gonzalo Diaz Date: Mon, 29 Jul 2024 17:20:47 -0400 Subject: [PATCH 1/3] [REFACTOR] Typo fixed. --- .../dictionaries_and_hashmaps/frequency_queries.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hackerrank/interview_preparation_kit/dictionaries_and_hashmaps/frequency_queries.test.ts b/src/hackerrank/interview_preparation_kit/dictionaries_and_hashmaps/frequency_queries.test.ts index 96a78fc7..b8cb7a10 100644 --- a/src/hackerrank/interview_preparation_kit/dictionaries_and_hashmaps/frequency_queries.test.ts +++ b/src/hackerrank/interview_preparation_kit/dictionaries_and_hashmaps/frequency_queries.test.ts @@ -27,7 +27,7 @@ describe('frequency_queries', () => { TEST_CASES.forEach((value) => { const answer = freqQuery(value.input); - console.debug(`checkMagazine(${value.input}) solution found: ${answer}`); + console.debug(`freqQuery(${value.input}) solution found: ${answer}`); expect(answer).toStrictEqual(value.expected); }); From 36a647f016a0645a0ca2f9d19d1a9090cc75be81 Mon Sep 17 00:00:00 2001 From: Gonzalo Diaz Date: Mon, 29 Jul 2024 17:20:53 -0400 Subject: [PATCH 2/3] [REFACTOR] Typo fixed. --- .../dictionaries_and_hashmaps/sherlock_and_anagrams.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hackerrank/interview_preparation_kit/dictionaries_and_hashmaps/sherlock_and_anagrams.test.ts b/src/hackerrank/interview_preparation_kit/dictionaries_and_hashmaps/sherlock_and_anagrams.test.ts index ac1be576..91dbdf71 100644 --- a/src/hackerrank/interview_preparation_kit/dictionaries_and_hashmaps/sherlock_and_anagrams.test.ts +++ b/src/hackerrank/interview_preparation_kit/dictionaries_and_hashmaps/sherlock_and_anagrams.test.ts @@ -49,7 +49,9 @@ describe('sherlock_and_anagrams', () => { testSet.tests.forEach((test) => { const answer = sherlockAndAnagrams(test.input); - console.debug(`checkMagazine(${test.input}) solution found: ${answer}`); + console.debug( + `sherlockAndAnagrams(${test.input}) solution found: ${answer}` + ); expect(answer).toStrictEqual(test.expected); }); From 20402cc7df66aaedbc3a82c22ce1ed7b872dad83 Mon Sep 17 00:00:00 2001 From: Gonzalo Diaz Date: Tue, 30 Jul 2024 23:19:54 -0400 Subject: [PATCH 3/3] [CONFIG] [Github Actions] trigger events changed. --- .github/workflows/codeql.yml | 3 ++- .github/workflows/docker-image.yml | 4 +++- .github/workflows/eslint.yml | 3 ++- .github/workflows/markdown-lint.yml | 4 +++- .github/workflows/node-coverage.js.yml | 4 +++- .github/workflows/node.js.yml | 6 +++--- .github/workflows/snyk-code.yml | 5 ++--- .github/workflows/yamllint.yml | 4 +++- 8 files changed, 21 insertions(+), 12 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 6fb75b1f..6ad44cb7 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -15,10 +15,11 @@ name: "CodeQL" on: # yamllint disable-line rule:truthy push: - branches: ["main", "develop", "feature/*"] + branches: ["main"] pull_request: # The branches below must be a subset of the branches above branches: ["main"] + workflow_dispatch: schedule: # ┌───────────── minute (0 - 59) # │ ┌───────────── hour (0 - 23) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index b2a595c4..1ddcb976 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -4,9 +4,11 @@ name: Docker Image CI on: # yamllint disable-line rule:truthy push: - branches: ["main", "develop", "feature/*"] + branches: ["main"] pull_request: + # The branches below must be a subset of the branches above branches: ["main"] + workflow_dispatch: env: IMAGE_NAME: algorithm-exercises-ts diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index f2c64273..8ec69c09 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -12,10 +12,11 @@ name: ESLint on: # yamllint disable-line rule:truthy push: - branches: ["main", "develop"] + branches: ["main"] pull_request: # The branches below must be a subset of the branches above branches: ["main"] + workflow_dispatch: schedule: # ┌───────────── minute (0 - 59) # │ ┌───────────── hour (0 - 23) diff --git a/.github/workflows/markdown-lint.yml b/.github/workflows/markdown-lint.yml index 9d898908..c68701af 100644 --- a/.github/workflows/markdown-lint.yml +++ b/.github/workflows/markdown-lint.yml @@ -4,9 +4,11 @@ name: Markdown Lint on: # yamllint disable-line rule:truthy push: - branches: ["main", "develop", "feature/*"] + branches: ["main"] pull_request: + # The branches below must be a subset of the branches above branches: ["main"] + workflow_dispatch: jobs: build: diff --git a/.github/workflows/node-coverage.js.yml b/.github/workflows/node-coverage.js.yml index 705c1c59..a0f30305 100644 --- a/.github/workflows/node-coverage.js.yml +++ b/.github/workflows/node-coverage.js.yml @@ -4,9 +4,11 @@ name: Node.js CI Coverage on: # yamllint disable-line rule:truthy push: - branches: ["main", "develop", "feature/*"] + branches: ["main"] pull_request: + # The branches below must be a subset of the branches above branches: ["main"] + workflow_dispatch: jobs: build: diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index cbda1654..e70003cc 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -4,15 +4,15 @@ name: Node.js CI Tests on: # yamllint disable-line rule:truthy push: - branches: ["main", "develop", "feature/*"] + branches: ["main"] pull_request: + # The branches below must be a subset of the branches above branches: ["main"] + workflow_dispatch: jobs: build: - runs-on: ubuntu-latest - strategy: matrix: os: [ diff --git a/.github/workflows/snyk-code.yml b/.github/workflows/snyk-code.yml index 6c607e75..4a42ff1e 100644 --- a/.github/workflows/snyk-code.yml +++ b/.github/workflows/snyk-code.yml @@ -3,10 +3,9 @@ name: Snyk Code analysis on: # yamllint disable-line rule:truthy - push: - branches: ["main", "develop", "feature/*"] pull_request: - branches: ["main"] + push: + workflow_dispatch: jobs: security: diff --git a/.github/workflows/yamllint.yml b/.github/workflows/yamllint.yml index d7eae7c7..58d810f0 100644 --- a/.github/workflows/yamllint.yml +++ b/.github/workflows/yamllint.yml @@ -4,9 +4,11 @@ name: YAML lint on: # yamllint disable-line rule:truthy push: - branches: ["main", "develop", "feature/*"] + branches: ["main"] pull_request: + # The branches below must be a subset of the branches above branches: ["main"] + workflow_dispatch: jobs: lint: