Skip to content

Commit 5c00f62

Browse files
authored
Add a GitHub action to lint the YAML files (#935)
Run linters only on pull request Add a YAML lint config file Lint some YAML
1 parent fa61f49 commit 5c00f62

File tree

5 files changed

+26
-14
lines changed

5 files changed

+26
-14
lines changed

.github/workflows/lint.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
name: Lint Markdown
1+
name: ❄️ Lint
22

3-
on: [push, pull_request]
3+
on: [pull_request]
44

55
jobs:
6-
linter:
7-
runs-on: ubuntu-18.04
6+
lint:
7+
name: 🧹 Markdown / YAML
8+
runs-on: ubuntu-latest
89
steps:
910
- uses: actions/checkout@v2
10-
- name: Use Node.js
11+
- name: 🍇 YAML Lint
12+
uses: ibiqlik/action-yamllint@v1
13+
- name: 🥝 Use Node.js
1114
uses: actions/setup-node@v1
1215
with:
1316
node-version: '12.x'

.travis.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
dist: trusty
22
language: java
33
rvm:
4-
- 1.9.3
4+
- 1.9.3
55
sudo: required
66
before_install:
7-
- echo "deb http://downloads.ortussolutions.com/debs/noarch /" > commandbox.list
8-
- sudo mv commandbox.list /etc/apt/sources.list.d/commandbox.list
9-
- sudo apt-get update
7+
- echo "deb http://downloads.ortussolutions.com/debs/noarch /" > commandbox.list
8+
- sudo mv commandbox.list /etc/apt/sources.list.d/commandbox.list
9+
- sudo apt-get update
1010
install:
11-
- sudo apt-get install -q -y --force-yes commandbox zip
12-
- gem install s3_website
11+
- sudo apt-get install -q -y --force-yes commandbox zip
12+
- gem install s3_website
1313
script:
14-
- "./build.sh"
14+
- "./build.sh"

.yamllint

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
3+
extends: default
4+
5+
rules:
6+
comments-indentation: disable
7+
document-start: disable
8+
line-length: disable
9+
truthy: disable

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Lucee documentation source and builder
22

33
[![Build Status](https://travis-ci.org/lucee/lucee-docs.svg?branch=master)](https://travis-ci.org/lucee/lucee-docs)
4-
![Lint Markdown](https://github.com/lucee/lucee-docs/workflows/Lint%20Markdown/badge.svg)
4+
[![Lint](https://github.com/lucee/lucee-docs/workflows/Lint/badge.svg)](#lucee-documentation-source-and-builder)
55

66
This repository contains the source and build scripts for creating Lucee's documentation. The website output of the docs can be found at [https://docs.lucee.org](https://docs.lucee.org).
77

s3_website.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ gzip:
1818

1919
concurrency_level: 100
2020
# redirects:
21-
# index.html: /
21+
# index.html: /

0 commit comments

Comments
 (0)