mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 20:35:24 +01:00
ci: run integration tests in parallel
This commit is contained in:
parent
1444721f0e
commit
0ecfef914d
73
.github/workflows/dev.yml
vendored
73
.github/workflows/dev.yml
vendored
@ -53,7 +53,7 @@ jobs:
|
||||
path: bin/semaphore
|
||||
retention-days: 1
|
||||
|
||||
test-boltdb:
|
||||
migrate-boltdb:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
needs:
|
||||
@ -81,7 +81,7 @@ jobs:
|
||||
run: |
|
||||
chmod +x ./semaphore && ./semaphore migrate --config config.json
|
||||
|
||||
test-mysql:
|
||||
migrate-mysql:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
needs:
|
||||
@ -128,7 +128,7 @@ jobs:
|
||||
run: |
|
||||
chmod +x ./semaphore && ./semaphore migrate --config config.json
|
||||
|
||||
test-mariadb:
|
||||
migrate-mariadb:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
needs:
|
||||
@ -175,7 +175,7 @@ jobs:
|
||||
run: |
|
||||
chmod +x ./semaphore && ./semaphore migrate --config config.json
|
||||
|
||||
test-postgres:
|
||||
migrate-postgres:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
needs:
|
||||
@ -224,29 +224,20 @@ jobs:
|
||||
run: |
|
||||
chmod +x ./semaphore && ./semaphore migrate --config config.json
|
||||
|
||||
test-e2e:
|
||||
integrate-boltdb:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
needs:
|
||||
- test-boltdb
|
||||
- test-mysql
|
||||
- test-mariadb
|
||||
- test-postgres
|
||||
- migrate-boltdb
|
||||
- migrate-mysql
|
||||
- migrate-mariadb
|
||||
- migrate-postgres
|
||||
|
||||
steps:
|
||||
- name: Checkout source
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup golang
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '^1.21.0'
|
||||
|
||||
- name: Install go-task
|
||||
run: |
|
||||
go install github.com/go-task/task/v3/cmd/task@latest
|
||||
|
||||
- name: Compose bolt
|
||||
- name: Launch compose
|
||||
run: |
|
||||
docker-compose \
|
||||
-f deployment/compose/server/base.yml \
|
||||
@ -256,6 +247,19 @@ jobs:
|
||||
-f deployment/compose/dredd/boltdb.yml \
|
||||
up --abort-on-container-exit
|
||||
|
||||
integrate-mysql:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
needs:
|
||||
- migrate-boltdb
|
||||
- migrate-mysql
|
||||
- migrate-mariadb
|
||||
- migrate-postgres
|
||||
|
||||
steps:
|
||||
- name: Checkout source
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Compose mysql
|
||||
run: |
|
||||
docker-compose \
|
||||
@ -266,6 +270,19 @@ jobs:
|
||||
-f deployment/compose/dredd/mysql.yml \
|
||||
up --abort-on-container-exit
|
||||
|
||||
integrate-mariadb:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
needs:
|
||||
- migrate-boltdb
|
||||
- migrate-mysql
|
||||
- migrate-mariadb
|
||||
- migrate-postgres
|
||||
|
||||
steps:
|
||||
- name: Checkout source
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Compose mariadb
|
||||
run: |
|
||||
docker-compose \
|
||||
@ -276,6 +293,19 @@ jobs:
|
||||
-f deployment/compose/dredd/mariadb.yml \
|
||||
up --abort-on-container-exit
|
||||
|
||||
integrate-postgres:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
needs:
|
||||
- migrate-boltdb
|
||||
- migrate-mysql
|
||||
- migrate-mariadb
|
||||
- migrate-postgres
|
||||
|
||||
steps:
|
||||
- name: Checkout source
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Compose postgres
|
||||
run: |
|
||||
docker-compose \
|
||||
@ -290,7 +320,10 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
needs:
|
||||
- test-e2e
|
||||
- integrate-boltdb
|
||||
- integrate-mysql
|
||||
- integrate-mariadb
|
||||
- integrate-postgres
|
||||
|
||||
steps:
|
||||
- name: Checkout source
|
||||
|
Loading…
Reference in New Issue
Block a user