-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(app): upgrade dependencies (#82)
* chore(app): upgrade dependencies * chore(domain): generate prisma client before build * fix: ci build * fix: domain module dependency injection * fix: tests in the ci * fix: tests in the ci * fix: tests in the ci * fix: tests in the ci * fix: build dependencies between domain and backend * fix: turbo config * fix: database url in ci * fix: database url in ci * fix: database url in ci * fix: database url in ci
- Loading branch information
1 parent
0270bbb
commit 5f643a8
Showing
27 changed files
with
2,260 additions
and
1,634 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,33 +18,23 @@ jobs: | |
runs-on: ubuntu-latest | ||
# Defined in .github/workflows/build-release.yml at the "Create Release Pull Request" step | ||
if: ${{ github.event.pull_request.title != 'update release versions' }} | ||
env: | ||
NODE_ENV: test | ||
MYSQL_ROOT_PASSWORD: root | ||
MYSQL_DATABASE: test | ||
MYSQL_PORT: 3306 | ||
DATABASE_URL: mysql://root:[email protected]:3306/test | ||
CONVERTKIT_API_KEY: api_key | ||
CONVERTKIT_FORM_ID: form_id | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
uses: ./.github/actions/install-dependencies | ||
|
||
- name: Start MySQL database | ||
run: yarn workspace @snipcode/domain db:test | ||
|
||
- name: Lint the projects | ||
run: yarn lint | ||
|
||
- name: Build the projects | ||
run: yarn build | ||
|
||
- name: Start MySQL server | ||
run: sudo systemctl start mysql.service | ||
|
||
- name: Run tests | ||
run: | | ||
yarn prisma migrate dev --schema=packages/domain/prisma/schema.prisma | ||
yarn test -- --runInBand --coverage | ||
run: yarn test -- --runInBand --coverage | ||
|
||
should-preview-frontend: | ||
runs-on: ubuntu-latest | ||
|
@@ -75,7 +65,7 @@ jobs: | |
- name: Install Yarn 4 | ||
run: | | ||
corepack enable | ||
yarn set version 4.2.2 | ||
yarn set version 4.3.1 | ||
- name: Install Vercel CLI | ||
run: npm install --global vercel@latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ APP_VERSION=1.1.0 | |
HOST=http://localhost | ||
PORT=7509 | ||
INTROSPECTION_ENABLED=false | ||
DATABASE_URL="mysql://root:[email protected]:3313/snipcode" | ||
DATABASE_URL=mysql://root:[email protected]:3313/snipcode | ||
ADMIN_PASSWORD=qwerty | ||
CONVERTKIT_API_KEY=convertkit-api-key | ||
CONVERTKIT_FORM_ID=convertkit-form-id | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
DATABASE_URL="mysql://root:@127.0.0.1:3311/core-db" | ||
SHADOW_DATABASE_URL="mysql://root:[email protected]:3312/snipcode" | ||
TEST_DATABASE_URL="mysql://root:[email protected]:3313/snipcode" | ||
DATABASE_URL=mysql://root:@127.0.0.1:3311/core-db | ||
SHADOW_DATABASE_URL=mysql://root:[email protected]:3312/snipcode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DATABASE_URL=mysql://root:[email protected]:3313/snipcode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,4 @@ node_modules | |
dist | ||
.env | ||
.env.local | ||
.env.test | ||
coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export const DOMAIN_SERVICES_OPTIONS = 'DOMAIN_SERVICES_OPTIONS'; | ||
export const MODULE_OPTIONS = 'MODULE_OPTIONS'; | ||
export const NEWSLETTER_SERVICE_OPTIONS = 'NEWSLETTER_SERVICE_OPTIONS'; |
Oops, something went wrong.