Skip to content

Commit

Permalink
Merge pull request #19 from systemli/add-molecule-test
Browse files Browse the repository at this point in the history
✅ Add Test for Workflow
  • Loading branch information
0x46616c6b authored May 9, 2023
2 parents 283b9ab + 2322676 commit 6790e99
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ansible-integration-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,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-22.04
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -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" ]'
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
16 changes: 16 additions & 0 deletions molecule/default/converge.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 6790e99

Please sign in to comment.