Skip to content

Commit

Permalink
update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bennsimon committed Aug 12, 2024
1 parent a0ad451 commit b6d6555
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- 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/[email protected]
with:
galaxy_api_key: ${{ secrets.ansible_galaxy_api_key }}
- name: Lint YAML
run: yamllint .

- name: Lint Ansible
run: ansible-lint .

0 comments on commit b6d6555

Please sign in to comment.