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

CI Setup #171

Merged
merged 2 commits into from
Nov 5, 2024
Merged

CI Setup #171

merged 2 commits into from
Nov 5, 2024

Conversation

rguo123
Copy link
Contributor

@rguo123 rguo123 commented Nov 5, 2024

Setup CI to run typescript check, eslint on changed files, and unit tests


Important

Sets up CI workflow to run ESLint, TypeScript checks, and unit tests on pull requests using GitHub Actions.

  • CI Setup:
    • Adds .github/workflows/ci.yml to configure CI for pull requests.
    • Runs on ubuntu-latest.
  • Linting and Testing:
    • Uses actions/checkout@v4 for code checkout.
    • Sets up Node.js 20 with actions/setup-node@v4.
    • Caches node_modules using actions/cache@v4.
    • Installs dependencies with npm ci if cache is not hit.
    • Collects changed files with git diff and filters for .js, .jsx, .ts, .tsx.
    • Runs eslint on changed files if any.
    • Executes TypeScript checks with npx tsc --emitDeclarationOnly.
    • Runs unit tests with npm run test.

This description was created by Ellipsis for 970b2ec. It will automatically update as commits are pushed.

Copy link
Contributor Author

rguo123 commented Nov 5, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @rguo123 and the rest of your teammates on Graphite Graphite

@rguo123 rguo123 marked this pull request as ready for review November 5, 2024 17:24
@rguo123 rguo123 requested a review from bmschmidt November 5, 2024 17:24
.github/workflows/ci.yml Outdated Show resolved Hide resolved
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
Copy link
Collaborator

@bmschmidt bmschmidt left a comment

Choose a reason for hiding this comment

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

TY!

Copy link
Collaborator

bmschmidt commented Nov 5, 2024

Merge activity

  • Nov 5, 3:50 PM EST: A user started a stack merge that includes this pull request via Graphite.
  • Nov 5, 3:50 PM EST: A user merged this pull request with Graphite.

@bmschmidt bmschmidt merged commit e6ca7db into main Nov 5, 2024
2 checks passed
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