first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
This commit is contained in:
33
.github/workflows/format-check.yml
vendored
Normal file
33
.github/workflows/format-check.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
name: Vulhub Format Check and Lint
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
format-check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.12"
|
||||
- name: install dependencies
|
||||
run: |
|
||||
python -m pip install -U pytest
|
||||
sudo wget -O /usr/local/bin/hadolint https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Linux-x86_64
|
||||
sudo chmod +x /usr/local/bin/hadolint
|
||||
- name: Check
|
||||
run: |
|
||||
python -m pytest tests/check
|
||||
markdown-check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20.x'
|
||||
- name: install dependencies
|
||||
run: |
|
||||
npm install -g markdownlint-cli
|
||||
- name: check markdown
|
||||
run: |
|
||||
markdownlint -c tests/markdownlint.json .
|
Reference in New Issue
Block a user