Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add yamllint, Fix lint for makefile.yml #2

Merged
merged 2 commits into from
Apr 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
---
name: Makefile CI

on:
"on":
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Run make all
run: make all
- uses: actions/checkout@v3
- name: Run make all
run: make all
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ PY = python3
VENV = venv
BIN=$(ROOT_DIR)/$(VENV)/bin

all: bashate shellcheck test
all: bashate shellcheck test yamllint

$(VENV): requirements.txt
$(PY) -m venv $(VENV)
Expand All @@ -29,6 +29,10 @@ shellcheck: $(VENV)
test:
$(ROOT_DIR)/test/test.sh

.PHONY: yamllint
yamllint: $(VENV)
$(BIN)/yamllint .

clean:
rm -rf $(VENV)
find . -type f -name *.pyc -delete
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
bashate
shellcheck-py
yamllint
Loading