forked from n8n-io/n8n
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Automate more of the release process (no-changelog)
- Loading branch information
Showing
13 changed files
with
251 additions
and
183 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ on: | |
- synchronize | ||
branches: | ||
- '**' | ||
- '!release/*' | ||
- '!release/v**' | ||
|
||
jobs: | ||
check-pr-title: | ||
|
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 |
---|---|---|
@@ -0,0 +1,101 @@ | ||
name: Reusable DB test workflow | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
cache-key: | ||
description: Cache key for modules and build artifacts. | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
sqlite-pooled: | ||
name: SQLite Pooled | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
env: | ||
DB_TYPE: sqlite | ||
DB_SQLITE_POOL_SIZE: 4 | ||
steps: | ||
- uses: actions/checkout@v4.1.1 | ||
- run: corepack enable | ||
- uses: actions/setup-node@v4.0.2 | ||
with: | ||
node-version: 20.x | ||
cache: 'pnpm' | ||
- run: pnpm install --frozen-lockfile | ||
|
||
- name: Restore cached build artifacts | ||
uses: actions/cache/restore@v4.0.0 | ||
with: | ||
path: ./packages/**/dist | ||
key: ${{ inputs.cache-key }} | ||
|
||
- name: Test SQLite Pooled | ||
working-directory: packages/cli | ||
run: pnpm jest | ||
|
||
mysql: | ||
name: MySQL | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
env: | ||
DB_MYSQLDB_PASSWORD: password | ||
steps: | ||
- uses: actions/checkout@v4.1.1 | ||
- run: corepack enable | ||
- uses: actions/setup-node@v4.0.2 | ||
with: | ||
node-version: 20.x | ||
cache: 'pnpm' | ||
- run: pnpm install --frozen-lockfile | ||
|
||
- name: Restore cached build artifacts | ||
uses: actions/cache/restore@v4.0.0 | ||
with: | ||
path: ./packages/**/dist | ||
key: ${{ inputs.cache-key }} | ||
|
||
- name: Start MySQL | ||
uses: isbang/compose-action@v2.0.0 | ||
with: | ||
compose-file: ./.github/docker-compose.yml | ||
services: | | ||
mysql | ||
- name: Test MySQL | ||
working-directory: packages/cli | ||
run: pnpm test:mysql --testTimeout 20000 | ||
|
||
postgres: | ||
name: Postgres | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
env: | ||
DB_POSTGRESDB_PASSWORD: password | ||
DB_POSTGRESDB_POOL_SIZE: 1 # Detect connection pooling deadlocks | ||
steps: | ||
- uses: actions/checkout@v4.1.1 | ||
- run: corepack enable | ||
- uses: actions/setup-node@v4.0.2 | ||
with: | ||
node-version: 20.x | ||
cache: 'pnpm' | ||
- run: pnpm install --frozen-lockfile | ||
|
||
- name: Restore cached build artifacts | ||
uses: actions/cache/restore@v4.0.0 | ||
with: | ||
path: ./packages/**/dist | ||
key: ${{ inputs.cache-key }} | ||
|
||
- name: Start Postgres | ||
uses: isbang/compose-action@v2.0.0 | ||
with: | ||
compose-file: ./.github/docker-compose.yml | ||
services: | | ||
postgres | ||
- name: Test Postgres | ||
working-directory: packages/cli | ||
run: pnpm test:postgres |
This file was deleted.
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.