chore(ci): refactor ci configs a bit

This commit is contained in:
Jef Roosens 2022-09-15 13:42:49 +02:00
parent 95d32e2d51
commit 847d77b2bc
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
10 changed files with 28 additions and 10 deletions

30
.woodpecker/test.yml Normal file
View file

@ -0,0 +1,30 @@
variables:
- &vlang_image 'chewingbever/vlang:0.3'
matrix:
PLATFORM:
- 'linux/amd64'
- 'linux/arm64'
branches:
exclude: [ main ]
platform: ${PLATFORM}
pipeline:
install-modules:
image: *vlang_image
pull: true
commands:
- export VMODULES=$PWD/.vmodules
- 'cd src && v install'
when:
event: [pull_request]
test:
image: *vlang_image
pull: true
commands:
- export VMODULES=$PWD/.vmodules
- make test
when:
event: [pull_request]