From 87ec3349eac59f8137c076f4f908bc472dfecf34 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Wed, 2 Aug 2023 23:26:19 +0200 Subject: [PATCH] fix(ci): execute linter and unit-test in parallel --- .drone.yml | 177 ++++++++++++++++++++++++++--------------------------- 1 file changed, 87 insertions(+), 90 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2b4e10b..28413ef 100644 --- a/.drone.yml +++ b/.drone.yml @@ -49,6 +49,87 @@ trigger: exclude: - tag +--- +kind: pipeline +type: docker +name: unit-test-amd64 + +clone: + disable: true + +platform: + arch: amd64 + +steps: +- name: clone + image: git.cryptic.systems/volker.raschek/git:1.2.1 + +- name: unit-test + commands: + - go test -v ./... + image: docker.io/library/golang:1.20.6 + +trigger: + event: + exclude: + - tag + +--- +kind: pipeline +type: docker +name: unit-test-arm-v7 + +clone: + disable: true + +platform: + arch: arm + +steps: +- name: clone + image: git.cryptic.systems/volker.raschek/git:1.2.1 + +- name: unit-test + commands: + - go test -v ./... + image: docker.io/library/golang:1.20.6 + +trigger: + event: + include: + - pull_request + - push + exclude: + - tag + +--- +kind: pipeline +type: docker +name: unit-test-arm64 + +clone: + disable: true + +platform: + arch: arm64 + +steps: +- name: clone + image: git.cryptic.systems/volker.raschek/git:1.2.1 + +- name: unit-test + commands: + - go test -v ./... + image: docker.io/library/golang:1.20.6 + +trigger: + event: + include: + - pull_request + - push + exclude: + - tag + --- kind: pipeline type: docker @@ -58,6 +139,7 @@ clone: disable: true depends_on: +- linter - unit-test-amd64 platform: @@ -124,6 +206,7 @@ clone: disable: true depends_on: +- linter - unit-test-arm-v7 platform: @@ -190,6 +273,7 @@ clone: disable: true depends_on: +- linter - unit-test-arm64 platform: @@ -247,96 +331,6 @@ trigger: repo: - volker.raschek/dcmerge ---- -kind: pipeline -type: docker -name: unit-test-amd64 - -clone: - disable: true - -depends_on: -- linter - -platform: - arch: amd64 - -steps: -- name: clone - image: git.cryptic.systems/volker.raschek/git:1.2.1 - -- name: unit-test - commands: - - go test -v ./... - image: docker.io/library/golang:1.20.6 - -trigger: - event: - exclude: - - tag - ---- -kind: pipeline -type: docker -name: unit-test-arm-v7 - -clone: - disable: true - -depends_on: -- linter - -platform: - arch: arm - -steps: -- name: clone - image: git.cryptic.systems/volker.raschek/git:1.2.1 - -- name: unit-test - commands: - - go test -v ./... - image: docker.io/library/golang:1.20.6 - -trigger: - event: - include: - - pull_request - - push - exclude: - - tag - ---- -kind: pipeline -type: docker -name: unit-test-arm64 - -clone: - disable: true - -depends_on: -- linter - -platform: - arch: arm64 - -steps: -- name: clone - image: git.cryptic.systems/volker.raschek/git:1.2.1 - -- name: unit-test - commands: - - go test -v ./... - image: docker.io/library/golang:1.20.6 - -trigger: - event: - include: - - pull_request - - push - exclude: - - tag - --- kind: pipeline type: docker @@ -346,6 +340,7 @@ clone: disable: true depends_on: +- linter - unit-test-amd64 platform: @@ -410,6 +405,7 @@ clone: disable: true depends_on: +- linter - unit-test-arm-v7 platform: @@ -474,6 +470,7 @@ clone: disable: true depends_on: +- linter - unit-test-arm64 platform: