-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'rc' of https://github.com/synnaxlabs/synnax into rc
- Loading branch information
Showing
119 changed files
with
8,229 additions
and
4,801 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: "Check API" | ||
on: | ||
pull_request: | ||
branches: | ||
- rc | ||
- main | ||
workflow_dispatch: | ||
permissions: | ||
contents: write | ||
packages: write | ||
|
||
jobs: | ||
setup: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
changed: ${{ steps.filter.outputs.changed }} | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Diff Changes | ||
uses: dorny/paths-filter@v3 | ||
id: filter | ||
with: | ||
filters: | | ||
changed: | ||
- "client/**" | ||
- "freighter/py/**" | ||
- "synnax/**" | ||
- "cesium/**" | ||
- "aspen/**" | ||
- "x/**" | ||
- "freighter/**" | ||
- ".github/workflows/test.client.yaml" | ||
api-typescript: | ||
needs: setup | ||
runs-on: ubuntu-latest | ||
if: needs.setup.outputs.changed == 'true' | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Diff Changes | ||
uses: dorny/paths-filter@v3 | ||
id: filter | ||
with: | ||
filters: | | ||
changed: | ||
- "client/ts/**" | ||
- "freighter/ts/**" | ||
- "synnax/**" | ||
- "cesium/**" | ||
- "aspen/**" | ||
- "x/**" | ||
- ".github/workflows/test.client.yaml" | ||
- name: Setup pnpm | ||
if: steps.filter.outputs.changed == 'true' | ||
uses: pnpm/action-setup@v3 | ||
with: | ||
version: 9 | ||
|
||
- name: Setup Node | ||
if: steps.filter.outputs.changed == 'true' | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: pnpm | ||
|
||
- name: Install Dependencies | ||
if: steps.filter.outputs.changed == 'true' | ||
run: pnpm install | ||
|
||
- name: Build | ||
if: steps.filter.outputs.changed == 'true' | ||
run: pnpm build:client | ||
|
||
- name: Check API | ||
if: steps.filter.outputs.changed == 'true' | ||
run: pnpm checkApi:client |
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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: "Test - Console" | ||
on: | ||
pull_request: | ||
branches: | ||
- rc | ||
- main | ||
push: | ||
branches: | ||
- rc | ||
- main | ||
workflow_dispatch: | ||
jobs: | ||
test: | ||
name: "Run Tests" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Diff Changes | ||
uses: dorny/paths-filter@v3 | ||
id: filter | ||
with: | ||
base: ${{ github.ref }} | ||
filters: | | ||
changed: | ||
- "console/**" | ||
- "pluto/**" | ||
- "client/ts/**" | ||
- "freighter/ts/**" | ||
- "x/ts/**" | ||
- ".github/workflows/test.console.yaml" | ||
- name: Set up pnpm | ||
if: steps.filter.outputs.changed == 'true' | ||
uses: pnpm/action-setup@v3 | ||
with: | ||
version: 9 | ||
|
||
- name: Set up Node | ||
if: steps.filter.outputs.changed == 'true' | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: pnpm | ||
|
||
- name: Install Dependencies | ||
if: steps.filter.outputs.changed == 'true' | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Turbo Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: .turbo-cache | ||
key: ${{ runner.os }}-turbo-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-turbo- | ||
- name: Build Pluto | ||
if: needs.setup.outputs.changed == 'true' | ||
run: pnpm build:pluto | ||
|
||
- name: Build Drift | ||
if: needs.setup.outputs.changed == 'true' | ||
run: pnpm build:drift | ||
|
||
- name: Test | ||
if: steps.filter.outputs.changed == 'true' | ||
run: pnpm test:console | ||
|
||
|
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,30 @@ | ||
name: Check Versions | ||
on: | ||
pull_request: | ||
branches: | ||
- rc | ||
- main | ||
push: | ||
branches: | ||
- rc | ||
- main | ||
workflow_dispatch: | ||
jobs: | ||
check-versions: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Navigate to scripts directory | ||
run: cd ./scripts | ||
|
||
- name: Grant execute permissions for check_version.sh | ||
run: chmod +x check_version.sh | ||
working-directory: ./scripts | ||
|
||
- name: Run version check script | ||
run: ./check_version.sh | ||
working-directory: ./scripts | ||
|
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.