diff --git a/.github/workflows/ansible-integration-workflow.yaml b/.github/workflows/ansible-integration-workflow.yaml index 887dfe0..4b9209b 100644 --- a/.github/workflows/ansible-integration-workflow.yaml +++ b/.github/workflows/ansible-integration-workflow.yaml @@ -59,9 +59,6 @@ jobs: - name: Ansible Lint uses: ansible-community/ansible-lint-action@v6 - - name: YAMLLint - uses: ibiqlik/action-yamllint@v3 - test: name: Molecule runs-on: ubuntu-20.04 diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml new file mode 100644 index 0000000..2aa347a --- /dev/null +++ b/.github/workflows/integration.yml @@ -0,0 +1,14 @@ +name: Integration + +on: + push: + branches: + - main + pull_request: + +jobs: + integration: + name: Integration + uses: ./.github/workflows/ansible-integration-workflow.yaml + with: + distros: '[ "debian11", "debian10", "ubuntu2204", "ubuntu2004" ]' diff --git a/README.md b/README.md index 1088281..a08ff76 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Github Workflows for Ansible Roles +[![Integration](https://github.com/systemli/github-ansible-workflow/actions/workflows/integration.yml/badge.svg)](https://github.com/systemli/github-ansible-workflow/actions/workflows/integration.yml) + ## Continuous Integration (Molecule) ### Configuration diff --git a/molecule/default/converge.yml b/molecule/default/converge.yml new file mode 100644 index 0000000..e10392d --- /dev/null +++ b/molecule/default/converge.yml @@ -0,0 +1,16 @@ +--- +- name: Converge + hosts: all + become: true + tasks: + - name: Create directory + ansible.builtin.file: + path: "/etc/molecule" + state: "directory" + mode: 0755 + + - name: Copy content to an example file + ansible.builtin.copy: + content: "This is a test" + dest: "/etc/molecule/test.txt" + mode: 0644