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

Remove unused setup test and fix env stubbing in CI environments #46

Merged
merged 6 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,5 @@ jobs:
- name: Install Dependencies
run: npm install

- name: Setup CI Environment
run: mv .env.example .env

- name: Run Build
run: NEXT_TELEMETRY_DISABLED=1 npm run build
3 changes: 0 additions & 3 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,5 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup CI Environment
run: mv .env.example .env

- name: Build Docker image
run: docker build -t internal-contribution-forks .
3 changes: 0 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,5 @@ jobs:
- name: Install Dependencies
run: npm install

- name: Setup CI Environment
run: mv .env.example .env

- name: Run Lint
run: npm run lint
3 changes: 0 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,5 @@ jobs:
- name: Install Dependencies
run: npm install

- name: Setup CI Environment
run: mv .env.example .env

- name: Run Jest Tests
run: npm test
1 change: 1 addition & 0 deletions env.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ export const env = createEnv({
PUBLIC_ORG: process.env.PUBLIC_ORG,
PRIVATE_ORG: process.env.PRIVATE_ORG,
},
skipValidation: process.env.SKIP_ENV_VALIDATIONS === 'true',
})
1 change: 0 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
preset: 'ts-jest',
setupFilesAfterEnv: ['./test/setupJest.ts'],
testRegex: '(/__tests__/.*|\\.(test|spec))\\.[tj]sx?$',
testEnvironment: 'node',
moduleDirectories: ['node_modules', 'src'],
Expand Down
Loading