Skip to content
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
8 changes: 4 additions & 4 deletions .github/workflows/check-prisma-migrations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@ jobs:
node-version: [22.x]

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: ${{ matrix.node-version }}

- name: Setup pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4

# Even just starting the Docker Compose as a daemon is slow because we have to download and build the images
# so, we run it in the background
- name: Start Docker Compose in background
uses: JarvusInnovations/background-action@v1.0.7
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # v1.0.7
with:
run: docker compose -f docker/dependencies/docker.compose.yaml up -d &
# we don't need to wait on anything, just need to start the daemon
Expand Down
46 changes: 23 additions & 23 deletions .github/workflows/db-migration-backwards-compatibility.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
base_branch: ${{ steps.check-diff.outputs.base_branch }}
steps:
- name: Checkout current branch
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 0

Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
steps:
# First, checkout the current branch to get its migrations
- name: Checkout current branch
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
path: current-branch

Expand All @@ -72,7 +72,7 @@ jobs:

# Now checkout base branch (main for dev, dev for all others)
- name: Checkout base branch
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
ref: ${{ needs.check-migrations-changed.outputs.base_branch }}
path: base-branch
Expand All @@ -85,16 +85,16 @@ jobs:
rm -rf base-branch current-branch

- name: Setup Node.js
uses: actions/setup-node@v6
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: 22.x

- name: Setup pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4

# Start Docker Compose in the background
- name: Start Docker Compose in background
uses: JarvusInnovations/background-action@v1.0.7
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # v1.0.7
with:
run: docker compose -f docker/dependencies/docker.compose.yaml up --pull always -d &
wait-on: /dev/null
Expand Down Expand Up @@ -160,7 +160,7 @@ jobs:
run: pnpm run db:init

- name: Start stack-backend in background
uses: JarvusInnovations/background-action@v1.0.7
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # v1.0.7
with:
run: pnpm run start:backend --log-order=stream &
wait-on: |
Expand All @@ -170,7 +170,7 @@ jobs:
log-output-if: true

- name: Start stack-mcp in background
uses: JarvusInnovations/background-action@v1.0.7
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # v1.0.7
with:
run: pnpm run start:mcp --log-order=stream &
wait-on: |
Expand All @@ -180,7 +180,7 @@ jobs:
log-output-if: true

- name: Start stack-dashboard in background
uses: JarvusInnovations/background-action@v1.0.7
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # v1.0.7
with:
run: pnpm run start:dashboard --log-order=stream &
wait-on: |
Expand All @@ -190,7 +190,7 @@ jobs:
log-output-if: true

- name: Start mock-oauth-server in background
uses: JarvusInnovations/background-action@v1.0.7
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # v1.0.7
with:
run: pnpm run start:mock-oauth-server --log-order=stream &
wait-on: |
Expand All @@ -200,7 +200,7 @@ jobs:
log-output-if: true

- name: Start run-email-queue in background
uses: JarvusInnovations/background-action@v1.0.7
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # v1.0.7
with:
run: pnpm -C apps/backend run run-email-queue --log-order=stream &
wait-on: |
Expand All @@ -210,7 +210,7 @@ jobs:
log-output-if: true

- name: Start run-cron-jobs in background
uses: JarvusInnovations/background-action@v1.0.7
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # v1.0.7
if: ${{ hashFiles('apps/backend/scripts/run-cron-jobs.ts') != '' }}
with:
run: pnpm -C apps/backend run run-cron-jobs:test --log-order=stream &
Expand Down Expand Up @@ -261,7 +261,7 @@ jobs:
steps:
# First, checkout the base branch to get its migrations
- name: Checkout base branch
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
ref: ${{ needs.check-migrations-changed.outputs.base_branch }}
path: base-branch
Expand All @@ -273,7 +273,7 @@ jobs:

# Now checkout current branch (new code)
- name: Checkout current branch
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
path: current-branch

Expand All @@ -292,16 +292,16 @@ jobs:
rm -rf saved-migrations

- name: Setup Node.js
uses: actions/setup-node@v6
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: 22.x

- name: Setup pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4

# Start Docker Compose in the background
- name: Start Docker Compose in background
uses: JarvusInnovations/background-action@v1.0.7
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # v1.0.7
with:
run: docker compose -f docker/dependencies/docker.compose.yaml up --pull always -d &
wait-on: /dev/null
Expand Down Expand Up @@ -367,7 +367,7 @@ jobs:
run: pnpm run db:init

- name: Start stack-backend in background
uses: JarvusInnovations/background-action@v1.0.7
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # v1.0.7
with:
run: pnpm run start:backend --log-order=stream &
wait-on: |
Expand All @@ -377,7 +377,7 @@ jobs:
log-output-if: true

- name: Start stack-mcp in background
uses: JarvusInnovations/background-action@v1.0.7
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # v1.0.7
with:
run: pnpm run start:mcp --log-order=stream &
wait-on: |
Expand All @@ -387,7 +387,7 @@ jobs:
log-output-if: true

- name: Start stack-dashboard in background
uses: JarvusInnovations/background-action@v1.0.7
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # v1.0.7
with:
run: pnpm run start:dashboard --log-order=stream &
wait-on: |
Expand All @@ -397,7 +397,7 @@ jobs:
log-output-if: true

- name: Start mock-oauth-server in background
uses: JarvusInnovations/background-action@v1.0.7
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # v1.0.7
with:
run: pnpm run start:mock-oauth-server --log-order=stream &
wait-on: |
Expand All @@ -407,7 +407,7 @@ jobs:
log-output-if: true

- name: Start run-email-queue in background
uses: JarvusInnovations/background-action@v1.0.7
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # v1.0.7
with:
run: pnpm -C apps/backend run run-email-queue --log-order=stream &
wait-on: |
Expand All @@ -417,7 +417,7 @@ jobs:
log-output-if: true

- name: Start run-cron-jobs in background
uses: JarvusInnovations/background-action@v1.0.7
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # v1.0.7
if: ${{ hashFiles('apps/backend/scripts/run-cron-jobs.ts') != '' }}
with:
run: pnpm -C apps/backend run run-cron-jobs:test --log-order=stream &
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/docker-server-build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
runs-on: ubicloud-standard-8
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5
with:
images: ${{ secrets.DOCKER_REPO }}/server
tags: |
Expand All @@ -30,10 +30,10 @@ jobs:
type=match,pattern=\d.\d.\d

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3

- name: Set push condition
id: push-condition
Expand All @@ -46,13 +46,13 @@ jobs:

- name: Login to DockerHub
if: steps.push-condition.outputs.should_push == 'true'
uses: docker/login-action@v3
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push
uses: docker/build-push-action@v6
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
with:
context: .
file: ./docker/server/Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-server-build-run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
docker:
runs-on: ubicloud-standard-8
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6

- name: Setup postgres
run: |
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/e2e-api-tests-local-emulator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,20 @@ jobs:
node-version: [22.x]

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: ${{ matrix.node-version }}

- name: Setup pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4

# Even just starting the Docker Compose as a daemon is slow because we have to download and build the images
# so, we run it in the background
- name: Start Docker Compose in background
uses: JarvusInnovations/background-action@v1.0.7
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # v1.0.7
with:
run: docker compose -f docker/dependencies/docker.compose.yaml up --pull always -d &
# we don't need to wait on anything, just need to start the daemon
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
run: pnpm run db:init

- name: Start stack-backend in background
uses: JarvusInnovations/background-action@v1.0.7
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # v1.0.7
with:
run: pnpm run start:backend --log-order=stream &
wait-on: |
Expand All @@ -120,7 +120,7 @@ jobs:
wait-for: 30s
log-output-if: true
- name: Start stack-mcp in background
uses: JarvusInnovations/background-action@v1.0.7
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # v1.0.7
with:
run: pnpm run start:mcp --log-order=stream &
wait-on: |
Expand All @@ -130,7 +130,7 @@ jobs:
log-output-if: true

- name: Start stack-dashboard in background
uses: JarvusInnovations/background-action@v1.0.7
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # v1.0.7
with:
run: pnpm run start:dashboard --log-order=stream &
wait-on: |
Expand All @@ -140,7 +140,7 @@ jobs:
log-output-if: true

- name: Start mock-oauth-server in background
uses: JarvusInnovations/background-action@v1.0.7
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # v1.0.7
with:
run: pnpm run start:mock-oauth-server --log-order=stream &
wait-on: |
Expand All @@ -150,7 +150,7 @@ jobs:
log-output-if: true

- name: Start run-email-queue in background
uses: JarvusInnovations/background-action@v1.0.7
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # v1.0.7
with:
run: pnpm -C apps/backend run run-email-queue --log-order=stream &
wait-on: |
Expand All @@ -160,7 +160,7 @@ jobs:
log-output-if: true

- name: Start run-cron-jobs in background
uses: JarvusInnovations/background-action@v1.0.7
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635 # v1.0.7
with:
run: pnpm -C apps/backend run run-cron-jobs:test --log-order=stream &
wait-on: |
Expand Down
Loading
Loading