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