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

GH Actions: add linting for GH Action yaml files #2018

Merged
merged 11 commits into from
Sep 6, 2023
Merged

Conversation

yoomlam
Copy link
Contributor

@yoomlam yoomlam commented Sep 6, 2023

What was the problem?

There was not linter to protect from errors in GH Action yaml files

How does this fix it?

Add lint-gh-actions.yml that runs linter to protect from errors in GH Action yaml files.
Also fix all the lint problems.

How to test this PR

Ensure all GH Actions continue to work

@github-actions
Copy link
Contributor

github-actions bot commented Sep 6, 2023

JaCoCo Test Coverage

There is no coverage information present for the Files changed

Total Project Coverage 68.04%

@github-actions
Copy link
Contributor

github-actions bot commented Sep 6, 2023

Test Results

100 tests  +81   100 ✔️ +81   47s ⏱️ +38s
  34 suites +29       0 💤 ±  0 
  34 files   +29       0 ±  0 

Results for commit 2589694. ± Comparison against base commit 07803d7.

@@ -113,7 +113,7 @@ jobs:
- name: "API Gateway Rest Controller GET /hello - Validate Response"
run: |
# Validate Response:
if [ "${{ fromJson(steps.apiGatewayHello.outputs.response).data }}" != "Hi!"]; then
if [ "${{ fromJson(steps.apiGatewayHello.outputs.response).data }}" != "Hi!" ]; then
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed bug found by linter

if: inputs.run_all_tests || steps.changed-files-specific.outputs.any_changed == 'true'
run: |
./gradlew :domain-cc:test

- name: "Run Employee Experience tests"
if: inputs.run_all_tests || steps.ee-changed-files-specific.any_changed == 'true'
if: inputs.run_all_tests || steps.ee-changed-files-specific.outputs.any_changed == 'true'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed bug found by linter

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Crux of PR

type: number
type: string
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no type number

@yoomlam yoomlam marked this pull request as ready for review September 6, 2023 03:33
@yoomlam yoomlam requested a review from a team as a code owner September 6, 2023 03:33
Copy link
Contributor

@tejans24 tejans24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yoomlam yoomlam merged commit 8fec713 into develop Sep 6, 2023
5 checks passed
@yoomlam yoomlam deleted the yoom/lint-gh-actions branch September 6, 2023 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants