diff --git a/.github/workflows/lint-ansible.yml b/.github/workflows/lint-ansible.yml deleted file mode 100644 index 834cc05..0000000 --- a/.github/workflows/lint-ansible.yml +++ /dev/null @@ -1,31 +0,0 @@ ---- -name: Ansible Lint - -on: - push: - -jobs: - - ansible-lint: - name: Ansible Lint - runs-on: ubuntu-latest - - steps: - - name: Check out the codebase - uses: actions/checkout@v3 - - - name: Set up Python. - uses: actions/setup-python@v4 - with: - python-version: '3.x' - - - name: Install ansible-lint - run: pip3 install ansible-lint ansible - - - name: Version check - run: | - ansible --version - ansible-lint --version - - - name: Run ansible-lint - run: ansible-lint diff --git a/.github/workflows/lint-vale.yml b/.github/workflows/lint-vale.yml deleted file mode 100644 index 052717c..0000000 --- a/.github/workflows/lint-vale.yml +++ /dev/null @@ -1,25 +0,0 @@ ---- -name: Vale Lint - -on: - push: - -jobs: - - vale-lint: - name: Vale Lint - runs-on: ubuntu-latest - - steps: - - name: Check out the codebase - uses: actions/checkout@v3 - - - name: Install vale - run: snap install vale - - - name: Version check - run: | - vale --version - - - name: Run yamllint - run: vale --glob='*.md' ./docs ./README.md \ No newline at end of file diff --git a/.github/workflows/lint-yaml.yml b/.github/workflows/lint-yaml.yml deleted file mode 100644 index 666b3d9..0000000 --- a/.github/workflows/lint-yaml.yml +++ /dev/null @@ -1,30 +0,0 @@ ---- -name: YAML Lint - -on: - push: - -jobs: - - yaml-lint: - name: YAML Lint - runs-on: ubuntu-latest - - steps: - - name: Check out the codebase - uses: actions/checkout@v3 - - - name: Set up Python. - uses: actions/setup-python@v4 - with: - python-version: '3.x' - - - name: Install yamllint - run: pip3 install yamllint - - - name: Version check - run: | - yamllint --version - - - name: Run yamllint - run: yamllint . diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..d0753ee --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,72 @@ +--- +name: Lint + +on: + push: + +jobs: + + ansible-lint: + name: Ansible + runs-on: ubuntu-latest + + steps: + - name: Check out the codebase + uses: actions/checkout@v3 + + - name: Set up Python. + uses: actions/setup-python@v4 + with: + python-version: '3.x' + + - name: Install ansible-lint + run: pip3 install ansible-lint ansible + + - name: Version check + run: | + ansible --version + ansible-lint --version + + - name: Run ansible-lint + run: ansible-lint + + yaml-lint: + name: YAML + runs-on: ubuntu-latest + + steps: + - name: Check out the codebase + uses: actions/checkout@v3 + + - name: Set up Python. + uses: actions/setup-python@v4 + with: + python-version: '3.x' + + - name: Install yamllint + run: pip3 install yamllint + + - name: Version check + run: | + yamllint --version + + - name: Run yamllint + run: yamllint . + + vale-lint: + name: Vale + runs-on: ubuntu-latest + + steps: + - name: Check out the codebase + uses: actions/checkout@v3 + + - name: Install vale + run: snap install vale + + - name: Version check + run: | + vale --version + + - name: Run yamllint + run: vale --glob='*.md' ./docs ./README.md \ No newline at end of file