mirror of
https://git.freecumextremist.com/grumbulon/pomme.git
synced 2024-11-21 23:03:46 +00:00
add drone jsonnet
This commit is contained in:
parent
866cbd8c04
commit
f4e5b94f98
1 changed files with 63 additions and 0 deletions
63
.drone.jsonnet
Normal file
63
.drone.jsonnet
Normal file
|
@ -0,0 +1,63 @@
|
|||
local testing(version, arch) = {
|
||||
kind: 'pipeline',
|
||||
type: 'docker',
|
||||
name: '%s-%s' % [version, arch],
|
||||
platform: {
|
||||
arch: arch,
|
||||
},
|
||||
steps: [
|
||||
{
|
||||
name: 'lint-backend',
|
||||
image: 'golangci/golangci-lint',
|
||||
commands: [
|
||||
'make lint-backend',
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'lint-frontend',
|
||||
image: 'guergeiro/pnpm',
|
||||
commands: [
|
||||
'make lint-frontend',
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'cache',
|
||||
image: 'golang:%s' % [version],
|
||||
commands: [
|
||||
'go mod tidy',
|
||||
],
|
||||
depends_on: [
|
||||
'lint-backend',
|
||||
'lint-frontend',
|
||||
],
|
||||
volumes: [
|
||||
{
|
||||
name: 'cache',
|
||||
path: '/go',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'test',
|
||||
image: 'golang:%s' % [version],
|
||||
commands: [
|
||||
'go test -v -cover ./...',
|
||||
],
|
||||
depends_on: [
|
||||
'cache',
|
||||
],
|
||||
volumes: [
|
||||
{
|
||||
name: 'cache',
|
||||
path: '/go',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
[
|
||||
testing('1.19', 'amd64'),
|
||||
testing('1.19', 'arm64'),
|
||||
testing('1.20', 'amd64'),
|
||||
testing('1.20', 'arm64'),
|
||||
]
|
Loading…
Reference in a new issue