Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb1049b8 authored by Romain Hunault's avatar Romain Hunault 💻
Browse files

Linter markdown test

parent 6d5c032f
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ variables:
    DOCKER_DRIVER: overlay2
stages:
  - deep-build
  - test
  - build
  - scan
  - deploy
@@ -52,6 +53,13 @@ deep-build:branch:
  variables:
    IMAGE_TAG: $CI_COMMIT_REF_SLUG

test:markdown-lint:
    image:  ruby:3.3.0
    script: 
    - cd htdocs/
    - bundle update
    - mdl *

build:branch:
  extends: .build:docker
  rules:
+8 −0
Original line number Diff line number Diff line
@@ -46,6 +46,14 @@ docker run --rm -v="$PWD/htdocs:/srv"-it ruby:3.3.0 /bin/bash bundle update

Then, commit and push

# How to test

## [Markdown Lint](https://github.com/markdownlint/markdownlint)

```bash
docker run --rm -v="$PWD/htdocs:/srv"-it ruby:2.7.1 /bin/bash bundle update && mdl *
```

# Deployment

Since this project depends on [ElasticSearch](https://www.elastic.co/), the deployment should follow the recommended approach and configuration as detailed in [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html)