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(ui): TE-2388 added build check and test run #1535

Merged
merged 6 commits into from
Sep 6, 2024
Merged

Conversation

nalin-patidar
Copy link
Collaborator

Issue(s)

https://startree.atlassian.net/browse/TE-2388

Description

Added build check and test run for pushed to PRs other then master

@nalin-patidar nalin-patidar requested a review from a team as a code owner August 29, 2024 09:11
@github-actions github-actions bot added the thirdeye-ui Updates to thirdeye-ui project label Aug 29, 2024
@github-actions github-actions bot removed the thirdeye-ui Updates to thirdeye-ui project label Aug 29, 2024
with:
sparse-checkout: |
thirdeye-ui
pom.xml
Copy link
Collaborator

Choose a reason for hiding this comment

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

curious on why you need pom.xml and .mvn ?
I remember some time ago we made the java build tools and the frontend tools totally separated.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I was referencing the publish action and in that its used for distribution step. And yes we don't need it in this action. Will remove it.

on:
push:
branches:
- '!master'
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we have tests running in another CI in master as of today (can't see it here:

)?
if not I think we should also run in master - we will have tests for the edge cases of:

  • user forcing a PR to be merged before PR tests pass
  • user pushing to master directly
    the CI should be cheap so no need to over optimize here, I'd rather be on the safe side.

Copy link

vercel bot commented Sep 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
thirdeye ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 6, 2024 6:46am

@github-actions github-actions bot added the thirdeye-ui Updates to thirdeye-ui project label Sep 6, 2024
@github-actions github-actions bot removed the thirdeye-ui Updates to thirdeye-ui project label Sep 6, 2024
cache: "npm"
cache-dependency-path: './thirdeye-ui/package-lock.json'

- name: Install dependencies, run test, and build

Choose a reason for hiding this comment

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

Wouldn't it be better to do this in separate steps? Can you please check if, when you create separate steps, the installed node_modules gets cached in the GitHub action's artifacts?

@nalin-patidar nalin-patidar merged commit c367467 into master Sep 6, 2024
13 checks passed
@nalin-patidar nalin-patidar deleted the te-2388 branch September 6, 2024 14:30
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.

3 participants