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
.eslintignoreand updated.eslintrcconfiguration for improved linting. - Removed outdated
eslint.config.jsfile.
- Added
-
GitHub Workflow Enhancements:
- Modified GitHub Actions workflows (
codeql.ymlandvalidation.yml) to improve caching mechanisms and optimize dependency installation steps.
- Modified GitHub Actions workflows (
-
Testing and Mock Adjustments:
- Updated tests for
CodeBuildJobandCloudWatchLoggerto use theaws-sdkpackage instead of specific AWS SDK client imports. - Improved mock implementations for more robust testing scenarios.
- Updated tests for
-
Dependency and Import Adjustments:
- Adjusted
package.jsondependencies, 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
CodeBuildJobandLoggerimplementations 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.