ci: check_format, check_commits, compile_jvm and test_jvm steps
This commit is contained in:
parent
252ed1c925
commit
a52b384782
1
.commitlintrc.yml
Normal file
1
.commitlintrc.yml
Normal file
@ -0,0 +1 @@
|
||||
extends: "@commitlint/config-conventional"
|
40
.gitlab-ci.yml
Normal file
40
.gitlab-ci.yml
Normal file
@ -0,0 +1,40 @@
|
||||
stages:
|
||||
- check
|
||||
- compile
|
||||
- test
|
||||
|
||||
default:
|
||||
image: gumjoe/wacc-ci-scala:slim
|
||||
|
||||
check_format:
|
||||
stage: check
|
||||
before_script:
|
||||
- cs install scalafmt
|
||||
script:
|
||||
- scalafmt --check . || echo "Run 'scala format' to fix formatting issues."
|
||||
|
||||
check_commits:
|
||||
stage: check
|
||||
image: node:lts-alpine
|
||||
before_script:
|
||||
- apk add git
|
||||
- npm install -g @commitlint/cli @commitlint/config-conventional
|
||||
- git pull origin master
|
||||
script:
|
||||
- npx commitlint --from origin/master --to HEAD --verbose
|
||||
|
||||
compile_jvm:
|
||||
stage: compile
|
||||
script:
|
||||
- scala compile --platform jvm -Werror .
|
||||
artifacts:
|
||||
paths:
|
||||
- .bsp/
|
||||
- .scala-build/
|
||||
|
||||
test_jvm:
|
||||
stage: test
|
||||
dependencies:
|
||||
- compile_jvm
|
||||
script:
|
||||
- scala test --platform jvm .
|
Loading…
x
Reference in New Issue
Block a user