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

chore: add cleanup resources script for codebuild #622

Merged
merged 2 commits into from
Jul 13, 2023
Merged

Conversation

AaronZyLee
Copy link
Contributor

@AaronZyLee AaronZyLee commented Jul 12, 2023

Description of changes

  • Added resource cleanup scripts for codebuild
  • Fixed the lint script so that it now can emit the lint error instead of ignore it in codebuild

Issue #, if available

Description of how you validated changes

Run the cleanup workflow in beta accounts

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)
  • Breaking changes to existing customers are released behind a feature flag or major version update
  • Changes are tested using sample applications for all relevant platforms (iOS/android/flutter/Javascript) that use the feature added/modified

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@AaronZyLee AaronZyLee requested review from a team as code owners July 12, 2023 19:55
@@ -8,5 +8,5 @@ if [ -z "$PR_NUM" ]; then
fi

# get PR file list, filter out removed files, filter only JS/TS files, then pass to the linter
curl -fsSL https://api.github.com/repos/$PROJECT_USERNAME/$REPO_NAME/pulls/$PR_NUM/files | jq -r '.[] | select(.status!="removed") | .filename' | grep -E '\.(js|jsx|ts|tsx)$' || true | xargs yarn eslint
curl -fsSL https://api.github.com/repos/$PROJECT_USERNAME/$REPO_NAME/pulls/$PR_NUM/files | jq -r '.[] | select(.status!="removed") | .filename' | (grep -E '\.(js|jsx|ts|tsx)$' || true) | xargs yarn eslint --quiet
Copy link
Contributor Author

@AaronZyLee AaronZyLee Jul 12, 2023

Choose a reason for hiding this comment

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

The parenthesis is required here. Otherwise it won't emit the lint error. Also the --quiet is added to silent the lint warnings, which is the same as the previous CCI behavior for codegen

@codecov-commenter
Copy link

codecov-commenter commented Jul 12, 2023

Codecov Report

Merging #622 (c96da6a) into main (8fb4331) will not change coverage.
The diff coverage is n/a.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@           Coverage Diff           @@
##             main     #622   +/-   ##
=======================================
  Coverage   85.93%   85.93%           
=======================================
  Files         152      152           
  Lines        7489     7489           
  Branches     1956     1956           
=======================================
  Hits         6436     6436           
  Misses        960      960           
  Partials       93       93           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@AaronZyLee AaronZyLee merged commit ceae91a into main Jul 13, 2023
@AaronZyLee AaronZyLee deleted the cleanup-resource branch July 13, 2023 21:15
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.

5 participants