vieter/.woodpecker/lint.yml

28 lines
631 B
YAML
Raw Permalink Normal View History

2022-09-15 13:42:49 +02:00
variables:
- &vlang_image 'git.rustybever.be/vieter/vlang:5d4c9dc9fc11bf8648541c934adb64f27cb94e37-alpine3.17'
2022-09-15 13:42:49 +02:00
2022-01-13 15:29:43 +01:00
# These checks already get performed on the feature branches
branches:
exclude: [ main ]
platform: 'linux/amd64'
2022-01-13 15:29:43 +01:00
2022-01-13 13:40:33 +01:00
pipeline:
# vfmt seems to get confused if these aren't present
install-modules:
image: *vlang_image
pull: true
commands:
- export VMODULES=$PWD/.vmodules
- 'cd src && v install'
when:
event: [pull_request]
2022-01-13 13:40:33 +01:00
lint:
2022-09-15 13:42:49 +02:00
image: *vlang_image
2022-01-22 22:12:30 +01:00
pull: true
2022-01-13 13:40:33 +01:00
commands:
- export VMODULES=$PWD/.vmodules
2022-01-13 14:33:06 +01:00
- make lint
when:
event: [pull_request]