-
-
Notifications
You must be signed in to change notification settings - Fork 765
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: support postgres db * fix: postgres install date time * fix: unit test * chore: yarn.lock * feat: add Makefile script * chore: merge conflicts * test: integration tests * chore(deps): update yarn to v4.0.0-rc.42 --------- Co-authored-by: pengap <[email protected]>
- Loading branch information
Showing
143 changed files
with
12,388 additions
and
9,890 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
File renamed without changes.
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,40 @@ | ||
name: Integration Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
pull_request: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Integration Tests | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: [18.x] | ||
database-type: [postgres, sqlite] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: ♻️ Restore docker layer cache | ||
uses: satackey/[email protected] | ||
continue-on-error: true | ||
with: | ||
key: ${{ runner.os }}-docker-cache-${{ hashFiles('packages/**.[jt]sx?', 'apps/**.[jt]sx?') }} | ||
restore-keys: | | ||
${{ runner.os }}-docker-cache- | ||
- name: 🧪 Run Tests | ||
run: | | ||
make ${{ matrix.database-type }}.integration.test | ||
- name: ⛔ Stop Database(s) | ||
run: | | ||
make docker.down | ||
if: matrix.database-type != 'sqlite' |
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,52 @@ | ||
name: Linting and Types | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
pull_request: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Linting and Types | ||
|
||
strategy: | ||
matrix: | ||
node-version: [18.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: 📥 Monorepo install | ||
uses: ./.github/actions/yarn-nm-install | ||
|
||
- name: ♻️ Restore packages cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
${{ github.workspace }}/.cache | ||
${{ github.workspace }}/**/tsconfig.tsbuildinfo | ||
key: ${{ runner.os }}-packages-cache-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('packages/**.[jt]sx?', 'packages/**.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-packages-cache-${{ hashFiles('**/yarn.lock') }}- | ||
- name: 🏗 Run build | ||
run: | | ||
yarn workspaces foreach -tv --exclude '@teable-group/(app|backend)' run build | ||
- name: 🕵️ Typecheck | ||
run: | | ||
yarn workspaces foreach -tv --include '@teable-group/*' run typecheck | ||
- name: 🔬 Linter | ||
run: | | ||
yarn workspaces foreach -tv --include '@teable-group/*' run lint | ||
yarn workspaces foreach -tv --include '@teable-group/*' run lint-styles |
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,47 @@ | ||
name: Unit Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
pull_request: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Unit Tests | ||
|
||
strategy: | ||
matrix: | ||
node-version: [18.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: 📥 Monorepo install | ||
uses: ./.github/actions/yarn-nm-install | ||
|
||
- name: ♻️ Restore packages cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
${{ github.workspace }}/.cache | ||
${{ github.workspace }}/**/tsconfig.tsbuildinfo | ||
key: ${{ runner.os }}-packages-cache-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('packages/**.[jt]sx?', 'packages/**.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-packages-cache-${{ hashFiles('**/yarn.lock') }}- | ||
- name: 🏗 Run build | ||
run: | | ||
yarn workspaces foreach -tv --exclude '@teable-group/(app|backend)' run build | ||
- name: 🧪 Run Tests | ||
run: | | ||
yarn workspaces foreach -tv --include '@teable-group/*' run test-unit |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.