Skip to content

feat(tests): add Localstack testing workflow #41

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

TartanLeGrand
Copy link
Contributor

@TartanLeGrand TartanLeGrand commented Apr 29, 2025

This pull request introduces a new GitHub Actions workflow for running Localstack tests and adds a corresponding README file. The workflow is designed to streamline testing, linting, and code quality checks, including integration with SonarQube/SonarCloud for static analysis.

Additions to CI/CD workflows:

  • .github/workflows/localstack-tests.yml: Added a new reusable workflow named "Localstack Tests" that includes steps for setting up the environment, running tests, linting, checking code formatting, and performing static analysis with SonarQube/SonarCloud. It accepts inputs such as API keys, project IDs, and Node.js version.

Documentation:

@TartanLeGrand TartanLeGrand marked this pull request as ready for review May 20, 2025 08:10
@TartanLeGrand TartanLeGrand requested a review from Le-Caignec May 20, 2025 08:10
Comment on lines +69 to +80
sudo apt-get update
sudo apt-get install -y xxd
npm install -g .
Copy link
Contributor

Choose a reason for hiding this comment

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

what is the goal of those lines ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah but it's not always needed if you check dataprotector-sdk for instance
https://github.com/iExecBlockchainComputing/dataprotector-sdk/blob/develop/packages/sdk/.drone.yml

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If is in var it's good for you ?

Comment on lines +74 to +87
- name: SonarScanner
uses: SonarSource/[email protected]
env:
SONAR_TOKEN: ${{ inputs.sonar-token }}
SONAR_HOST_URL: ${{ inputs.sonar-host-url }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you explain what SonarScanner is ? What it do ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Le-Caignec Good for the explain ?

@Le-Caignec
Copy link
Contributor

Le-Caignec commented May 21, 2025

could you add optionnal step npm run check-types

@TartanLeGrand TartanLeGrand force-pushed the feat/tests/add-localstack branch from f8c881e to fa2244b Compare June 16, 2025 10:37
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.

2 participants