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
22 changes: 11 additions & 11 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -346,17 +346,17 @@ jobs:
labels: |-
commit-sha=${{ github.sha }}

# - name: "Deploy Tests to Cloud Run"
# if: ${{ matrix.region == 'europe-west4' }}
# uses: google-github-actions/deploy-cloudrun@v2
# with:
# image: europe-docker.pkg.dev/ghost-activitypub/activitypub/activitypub:${{ needs.build-test-push.outputs.migrations_docker_version }}
# region: ${{ matrix.region }}
# job: stg-${{ matrix.region_name }}-activitypub-tests
# flags: --command="yarn" --args="_test:integration" --wait --execute-now
# skip_default_labels: true
# labels: |-
# commit-sha=${{ github.sha }}
- name: "Deploy Tests to Cloud Run"
if: ${{ matrix.region == 'europe-west4' }}
uses: google-github-actions/deploy-cloudrun@v2
with:
image: europe-docker.pkg.dev/ghost-activitypub/activitypub/activitypub:${{ needs.build-test-push.outputs.migrations_docker_version }}
region: ${{ matrix.region }}
job: stg-${{ matrix.region_name }}-activitypub-tests
flags: --command="yarn" --args="_test:integration" --wait --execute-now
skip_default_labels: true
labels: |-
commit-sha=${{ github.sha }}

- name: "Deploy ActivityPub Queue to Cloud Run"
uses: google-github-actions/deploy-cloudrun@v2
Expand Down
2 changes: 1 addition & 1 deletion src/test/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export async function createTestDb() {
`SELECT table_name FROM information_schema.tables WHERE table_schema = '${process.env.MYSQL_DATABASE}'`,
);

// Clone each table structure
// Clone each table structure - GCP SQL was having issues with the `CREATE TABLE LIKE` syntax
for (const { TABLE_NAME } of tables[0]) {
const [createTableResult] = await systemClient.raw(
`SHOW CREATE TABLE \`${process.env.MYSQL_DATABASE}\`.\`${TABLE_NAME}\``,
Expand Down