From b6d655504e7dd5787df8714b447fa727e6abce0a Mon Sep 17 00:00:00 2001 From: bennsimon Date: Mon, 12 Aug 2024 15:26:20 +0300 Subject: [PATCH] update ci.yml --- .github/workflows/ci.yml | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2bd678c..cc2a702 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,26 +5,23 @@ on: - pull_request jobs: - test: - name: Test + lint: + name: linter runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v3 with: - path: "${{ github.repository }}" + python-version: '3.x' - - name: Run Molecule tests - uses: robertdebock/molecule-action@2.1.0 + - name: Install dependencies + run: pip3 install yamllint ansible-lint - release: - name: Release - needs: - - test - if: startsWith(github.ref, 'refs/tags/') - runs-on: ubuntu-latest - steps: - - name: Publish to Ansible Galaxy - uses: robertdebock/galaxy-action@1.0.3 - with: - galaxy_api_key: ${{ secrets.ansible_galaxy_api_key }} + - name: Lint YAML + run: yamllint . + + - name: Lint Ansible + run: ansible-lint .