From 16f1f5e9dae45764565cc77f84bda758c41ba3ea Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Wed, 2 Aug 2023 23:02:59 +0200 Subject: [PATCH] fix(ci): execute unit tests --- .drone.yml | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 93 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index b0ce8ba..9cfadaf 100644 --- a/.drone.yml +++ b/.drone.yml @@ -250,7 +250,7 @@ trigger: --- kind: pipeline type: docker -name: latest-amd64 +name: unit-test-amd64 clone: disable: true @@ -258,6 +258,96 @@ clone: 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 +name: latest-amd64 + +clone: + disable: true + +depends_on: +- unit-test-amd64 + platform: os: linux arch: amd64 @@ -320,7 +410,7 @@ clone: disable: true depends_on: -- linter +- unit-test-arm-v7 platform: os: linux @@ -384,7 +474,7 @@ clone: disable: true depends_on: -- linter +- unit-test-arm64 platform: os: linux