Skip to content

Commit

Permalink
Add linting
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanTAllen committed Aug 26, 2020
1 parent 16f73fc commit 12216a8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .github/linters/.markdown-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"MD013": false
}
25 changes: 15 additions & 10 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,21 @@ name: PR
on: pull_request

jobs:
superlinter:
name: Lint bash, docker, markdown, and yaml
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Lint codebase
uses: docker://github/super-linter:v3.8.3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_ALL_CODEBASE: true
VALIDATE_BASH: true
VALIDATE_DOCKERFILE: true
VALIDATE_MD: true
VALIDATE_YAML: true

validate-docker-image-builds:
name: Validate Docker image builds
runs-on: ubuntu-latest
Expand All @@ -11,16 +26,6 @@ jobs:
- name: Docker build
run: "docker build --pull ."

shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
container:
image: ponylang/shared-docker-ci-shellcheck:20191008
steps:
- uses: actions/checkout@v1
- name: Shellcheck entrypoint.sh
run: shellcheck entrypoint.sh

verify-changelog:
name: Verify CHANGELOG is valid
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .markdownlintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CHANGELOG.md
CODE_OF_CONDUCT.md

0 comments on commit 12216a8

Please sign in to comment.