From f92ff1d6bc11e829865a569710487d151daffe0c Mon Sep 17 00:00:00 2001 From: Psych0D0g Date: Tue, 19 Dec 2023 16:44:52 +0100 Subject: [PATCH] optimize pipeline --- .woodpecker/test_changes.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.woodpecker/test_changes.yaml b/.woodpecker/test_changes.yaml index 17abb51..d78caff 100644 --- a/.woodpecker/test_changes.yaml +++ b/.woodpecker/test_changes.yaml @@ -1,6 +1,6 @@ when: branch: ${CI_REPO_DEFAULT_BRANCH} - event: [push, pull_request] + event: [pull_request] services: database-mysql: image: mysql @@ -19,10 +19,12 @@ services: - 5432 steps: prepare_mysql_database: + group: db_prep image: mysql commands: - test/prepare_mysql.sh prepare_postgresql_database: + group: db_prep image: postgres commands: - test/prepare_postgresql.sh @@ -32,8 +34,13 @@ steps: image: golang:1.21.5 commands: - ./build.sh - test-authentication: + test-authentication-pgsql: + group: test_auth image: golang:1.21.5 commands: - test/test_pgsql_pw.sh + test-authentication-mysql: + group: test_auth + image: golang:1.21.5 + commands: - test/test_mysql_pw.sh \ No newline at end of file