Skip to content

Commit

Permalink
✅ Add Test for Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
0x46616c6b committed Oct 22, 2022
1 parent ccc7537 commit 2d32158
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 @@ -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
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 2d32158

Please sign in to comment.