Summary of Changes:
This pull request introduces several refinements and optimizations to the AWS CodeBuild GitHub Action implementation, ensuring better code quality and performance:
-
Eslint Configuration and Cleanup:
- Added
.eslintignore
and updated.eslintrc
configuration for improved linting. - Removed outdated
eslint.config.js
file.
- Added
-
GitHub Workflow Enhancements:
- Modified GitHub Actions workflows (
codeql.yml
andvalidation.yml
) to improve caching mechanisms and optimize dependency installation steps.
- Modified GitHub Actions workflows (
-
Testing and Mock Adjustments:
- Updated tests for
CodeBuildJob
andCloudWatchLogger
to use theaws-sdk
package instead of specific AWS SDK client imports. - Improved mock implementations for more robust testing scenarios.
- Updated tests for
-
Dependency and Import Adjustments:
- Adjusted
package.json
dependencies, including updates and downgrades for better compatibility and performance. - Updated source files to use consolidated AWS SDK imports instead of modular imports.
- Adjusted
-
CodeBuildJob and Logger Refinements:
- Refined
CodeBuildJob
andLogger
implementations to enhance error handling and integrate new AWS SDK usage patterns.
- Refined
These changes collectively aim to streamline the action's setup, improve its maintainability, and ensure compliance with the latest best practices for using AWS SDK and GitHub Actions.