Provide a smooth, one-click packer build solution for ubuntu 20.04/22.04 LTS based frozen VM #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CodeLint | |
on: [pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: autopep8 | |
id: autopep8 | |
uses: peter-evans/autopep8@v2 | |
with: | |
args: --exit-code --jobs 0 --recursive --in-place --aggressive --aggressive . | |
- name: Annotate diff changes using reviewdog | |
if: steps.autopep8.outputs.exit-code == 2 | |
uses: reviewdog/action-suggester@v1 | |
with: | |
tool_name: autopep8 | |
- name: Fail if autopep8 made changes | |
if: steps.autopep8.outputs.exit-code == 2 | |
run: exit 1 | |
- name: Check the Shell scripts | |
uses: azohra/shell-linter@latest |