Files
palworld-server-docker/.github/workflows/linting.yml
2024-01-24 11:39:24 +01:00

40 lines
986 B
YAML

name: Linting
on: [pull_request]
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run Shellcheck
uses: azohra/shell-linter@latest
with:
severity: "error"
dockerlint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: hadolint/hadolint-action@v2.0.0
with:
dockerfile: Dockerfile
lint: 'hadolint'
failure-threshold: error
markdownlint:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- uses: DavidAnson/markdownlint-cli2-action@v15
with:
config: '.markdownlint.jsonc'
globs: '**/*.md'
ignore: '.github/pull_request_template.md'
test-build:
runs-on: ubuntu-latest
steps:
- name: Build the Image
uses: docker/build-push-action@v2
with:
push: false