aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar vitalyster2023-02-22 13:16:33 +0300
committerGravatar Vitaly Takmazov2023-02-22 14:42:04 +0300
commitc535e53305c1b74acdce2edf93f1dd1f8d411a95 (patch)
treea94833c158f6d03d2d5a52214a05375a62bd6f38
parent39a700ab8c5d8dd271e466065dc22c25838f37f8 (diff)
CI: self-hosted runner
-rw-r--r--.github/workflows/ci.yml11
-rw-r--r--src/test/resources/application-postgres.yml2
2 files changed, 8 insertions, 5 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a7cd808d..b722d36d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -5,10 +5,13 @@ on:
push:
branches: [master]
+concurrency:
+ group: ${{ github.head_ref || github.ref }}
+ cancel-in-progress: true
+
jobs:
current:
- runs-on: ubuntu-latest
- timeout-minutes: 5
+ runs-on: self-hosted
strategy:
matrix:
profile: [default, postgres, mysql, sqlserver]
@@ -16,7 +19,7 @@ jobs:
postgres:
image: postgres
ports:
- - 5432:5432
+ - 5433:5432
env:
POSTGRES_DB: juick
POSTGRES_USER: juick
@@ -64,7 +67,7 @@ jobs:
defaults:
run:
working-directory: vnext
- runs-on: ubuntu-latest
+ runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- name: Setup Node.JS 18
diff --git a/src/test/resources/application-postgres.yml b/src/test/resources/application-postgres.yml
index ed7249b3..9646bca9 100644
--- a/src/test/resources/application-postgres.yml
+++ b/src/test/resources/application-postgres.yml
@@ -1,6 +1,6 @@
spring:
datasource:
- url: jdbc:postgresql://localhost:5432/juick
+ url: jdbc:postgresql://localhost:5433/juick
username: juick
password: secret
flyway: