-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
20 changed files
with
208 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
--- | ||
name: CI | ||
|
||
env: | ||
ROLE_NAME: wcm_io_devops.aem_dispatcher | ||
|
||
defaults: | ||
run: | ||
working-directory: 'wcm_io_devops.aem_dispatcher' | ||
|
||
'on': | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
- "feature/migrate-to-github-actions" | ||
|
||
jobs: | ||
|
||
lint: | ||
name: "Lint (${{ matrix.NAME }})" | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- NAME: min_ansible_version | ||
ANSIBLE_VERSION: "==2.7.*" | ||
ANSIBLE_LINT_VERSION: "==4.2.*" | ||
- NAME: latest | ||
ANSIBLE_VERSION: "" | ||
ANSIBLE_LINT_VERSION: "" | ||
|
||
steps: | ||
- name: Check out the codebase. | ||
uses: actions/checkout@v2 | ||
with: | ||
path: '${{ env.ROLE_NAME }}' | ||
|
||
- name: Cache PIP | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ matrix.ANSIBLE_VERSION }}-${{ hashFiles('**/requirements.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip-${{ matrix.ANSIBLE_VERSION }}- | ||
- name: Create ansible.cfg | ||
run: "printf '[defaults]\nroles_path=./tests/requirements/:../' > ansible.cfg" | ||
|
||
- name: Set up Python 3. | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install pip tools. | ||
run: | | ||
pip3 install wheel --upgrade | ||
- name: Install test dependencies. | ||
run: > | ||
pip3 install yamllint | ||
ansible${{ matrix.ANSIBLE_VERSION }} | ||
ansible-lint${{ matrix.ANSIBLE_LINT_VERSION }} | ||
--upgrade | ||
- name: Install role requirements. | ||
run: | | ||
pip3 install -r requirements.txt | ||
- name: Install Galaxy requirements. | ||
run: | | ||
ansible-galaxy install -r tests/requirements.yml -p ./tests/requirements | ||
- name: Lint code. | ||
run: | | ||
yamllint . | ||
ansible-lint | ||
- name: Test syntax. | ||
run: | | ||
ansible-playbook tests/test.yml -i tests/inventory --syntax-check | ||
galaxy: | ||
name: "Ansible Galaxy import" | ||
needs: | ||
- lint | ||
if: github.ref == 'refs/heads/master' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Trigger a new import on Galaxy. | ||
uses: robertdebock/galaxy-action@affc5472cd0b08f64a51eafba49b08898c1bbeb8 | ||
with: | ||
galaxy_api_key: ${{ secrets.GALAXY_API_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
name: Release | ||
|
||
'on': | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
|
||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Trigger a new import on Galaxy. | ||
uses: robertdebock/galaxy-action@affc5472cd0b08f64a51eafba49b08898c1bbeb8 | ||
with: | ||
galaxy_api_key: ${{ secrets.GALAXY_API_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,31 @@ | ||
target/ | ||
pom.xml.tag | ||
pom.xml.releaseBackup | ||
pom.xml.versionsBackup | ||
pom.xml.next | ||
release.properties | ||
maven-eclipse.xml | ||
infinitest.filters | ||
|
||
node_modules/ | ||
npm-debug.log | ||
|
||
.nodejs | ||
.project | ||
.classpath | ||
.settings | ||
.externalToolBuilders | ||
.pmd | ||
.checkstyle | ||
.idea | ||
.vagrant | ||
*.iml | ||
.DS_Store | ||
*.retry | ||
.rubygems | ||
.sass-cache | ||
.rubygems-gem-maven-plugin | ||
*.sublime-* | ||
*nbactions*.xml | ||
.temp/ | ||
target/ | ||
pom.xml.tag | ||
pom.xml.releaseBackup | ||
pom.xml.versionsBackup | ||
pom.xml.next | ||
release.properties | ||
maven-eclipse.xml | ||
infinitest.filters | ||
|
||
node_modules/ | ||
npm-debug.log | ||
|
||
.nodejs | ||
.project | ||
.classpath | ||
.settings | ||
.externalToolBuilders | ||
.pmd | ||
.checkstyle | ||
.idea | ||
.vagrant | ||
*.iml | ||
.DS_Store | ||
*.retry | ||
.rubygems | ||
.sass-cache | ||
.rubygems-gem-maven-plugin | ||
*.sublime-* | ||
*nbactions*.xml | ||
.temp/ | ||
ansible.cfg |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
extends: default | ||
|
||
rules: | ||
line-length: | ||
max: 120 | ||
level: warning | ||
truthy: | ||
allowed-values: ['true', 'false', 'yes', 'no'] | ||
|
||
ignore: | | ||
.travis.yml | ||
tests/requirements/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# This role needs to have the following PIP components installed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
- name: Install Dispatcher package. | ||
package: | ||
name: "{{ aem_dispatcher_package }}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
- name: wcm_io_devops.apache | ||
--- | ||
- name: wcm_io_devops.apache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
--- | ||
- name: test role syntax | ||
hosts: test | ||
roles: | ||
- ansible-aem-dispatcher | ||
- wcm_io_devops.aem_dispatcher |
Oops, something went wrong.