28 lines
592 B
YAML
28 lines
592 B
YAML
variables:
|
|
- &vlang_image 'git.rustybever.be/chewing_bever/vlang:0.3.2'
|
|
|
|
# These checks already get performed on the feature branches
|
|
branches:
|
|
exclude: [ main ]
|
|
platform: 'linux/amd64'
|
|
|
|
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]
|
|
|
|
lint:
|
|
image: *vlang_image
|
|
pull: true
|
|
commands:
|
|
- export VMODULES=$PWD/.vmodules
|
|
- make lint
|
|
when:
|
|
event: [pull_request]
|