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

Setup GitHub Actions workflow for formatting, linting, and typechecking #17

Merged
merged 6 commits into from
Jan 24, 2024

Conversation

RishikeshNK
Copy link
Collaborator

@RishikeshNK RishikeshNK commented Jan 24, 2024

Please see .github/workflows/main.yml:

env:
  NODE_VERSION: 20
  PNPM_VERSION: 8

  # Find a workaround to this.
  DATABASE_URL: "postgresql://admin:admin@localhost:5432/cooper?schema=public"
  NEXTAUTH_URL: "localhost:3000"

This is a temporary workaround since the linting script, I believe, runs the files. The src/env.js file is responsible for type-checking the environment files. For now, I have added non-production environment variables to the workflow file. I will create a new pull request once I figure out a workaround to this in the future.

@RishikeshNK RishikeshNK merged commit fef59d9 into main Jan 24, 2024
2 checks passed
@RishikeshNK RishikeshNK deleted the RishikeshNK/setup-workflows branch January 24, 2024 23: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.

1 participant