Skip to content

v1.4.0: Migration to the AWS SDK v3 and Dependencies update

Compare
Choose a tag to compare
@akazakou akazakou released this 02 Jul 21:37
76542ef

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.
  • GitHub Workflow Enhancements:

    • Modified GitHub Actions workflows (codeql.yml and validation.yml) to improve caching mechanisms and optimize dependency installation steps.
  • Testing and Mock Adjustments:

    • Updated tests for CodeBuildJob and CloudWatchLogger to use the aws-sdk package instead of specific AWS SDK client imports.
    • Improved mock implementations for more robust testing scenarios.
  • 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.
  • CodeBuildJob and Logger Refinements:

    • Refined CodeBuildJob and Logger implementations to enhance error handling and integrate new AWS SDK usage patterns.

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.