diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8e6d42e..e119b7f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,8 +14,8 @@ on: - cron: 30 5 * * MON # Every monday at 5.30 AM jobs: - cicd: - name: Test role + lint: + name: Lint code runs-on: ubuntu-latest steps: - name: Checkout. @@ -25,9 +25,21 @@ jobs: with: python-version: 3.x - name: Install dependencies. - run: pip install yamllint ansible-core ansible-lint pre-commit molecule molecule-plugins[podman] + run: pip install yamllint ansible-lint pre-commit - name: Lint code. run: pre-commit run --all-files --color always --verbose + test: + name: Test role + runs-on: ubuntu-latest + steps: + - name: Checkout. + uses: actions/checkout@v3 + - name: Setup python + uses: actions/setup-python@v4 + with: + python-version: 3.x + - name: Install dependencies. + run: pip install molecule-plugins[podman] - name: Run molecule test. run: molecule test env: diff --git a/.gitignore b/.gitignore index 5069f6c..16d5c8e 100644 --- a/.gitignore +++ b/.gitignore @@ -57,3 +57,4 @@ tags # End of https://www.toptal.com/developers/gitignore/api/vim,macos borgmatic-keys/ +.vscode/*