felipegfalcao.github.io

November 24, 2023 ยท View on GitHub

GitHub Actions status - Lint Code Base Build and Deploy

Overview

My personal site and blog...

felipegfalcao.github.io

Theme Source

Chirpy:

Building / Testing Locally

On Ubuntu / Intel-based Mac:

bundle install
bundle exec jekyll s

Using Docker:

docker run --rm -it --volume="${PWD}:/srv/jekyll:Z" --publish 4000:4000 jekyll/jekyll jekyll serve

Megalinter:

mega-linter-runner --flavor documentation \
  -e "'DISABLE_LINTERS=REPOSITORY_DEVSKIM,SPELL_CSPELL'" \
  -e BASH_SHFMT_ARGUMENTS="--indent 2 --space-redirects" \
  -e FORMATTERS_DISABLE_ERRORS="false" \
  -e HTML_HTMLHINT_FILTER_REGEX_EXCLUDE="^index.html" \
  -e JSON_PRETTIER_FILTER_REGEX_EXCLUDE="^.markdown-link-check.json" \
  -e MARKDOWN_MARKDOWNLINT_CONFIG_FILE=".markdownlint.yml" \
  -e PRINT_ALPACA="false" \
  -e REPORT_OUTPUT_FOLDER="/tmp/" \
  -e RUBY_RUBOCOP_FILTER_REGEX_EXCLUDE="^_plugins" \
  -e SPELL_CSPELL_FILTER_REGEX_INCLUDE="(^README.md|^_posts/)" \
  -e SPELL_MISSPELL_FILTER_REGEX_EXCLUDE="^_data/locales" \
  -e YAML_PRETTIER_FILTER_REGEX_EXCLUDE="(^_data/|^_config.yml)" \
  -e YAML_V8R_FILTER_REGEX_EXCLUDE="(^_data/|^_config.yml)"

Notes

  • Use ```bash to run commands during the post_tests "create" execution:

    ```bash
    ### <some create commands...>
    ```
    
  • Use ```shell not to run commands during the post_tests execution (they will be only displayed on the web pages):

    ```shell
    ### some commands...
    ```
    
  • Use ```sh to run commands during the post_tests "destroy" execution:

    ```sh
    ### <some clean-up/destroy commands...>
    ```