mirror of
https://github.com/roles-ansible/ansible_role_sway.git
synced 2024-08-16 13:49:49 +02:00
Merge pull request #2 from roles-ansible/test
improve testing and gh actions
This commit is contained in:
commit
78e962efd5
7 changed files with 64 additions and 24 deletions
18
.github/workflows/ansible-debian-bullseye.yml
vendored
Normal file
18
.github/workflows/ansible-debian-bullseye.yml
vendored
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
---
|
||||||
|
name: Ansible check debian:bullseye
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: ansible check with debian:bullseye
|
||||||
|
uses: roles-ansible/check-ansible-debian-bullseye-action@main
|
||||||
|
with:
|
||||||
|
targets: "./"
|
6
.github/workflows/ansible-debian-stable.yml
vendored
6
.github/workflows/ansible-debian-stable.yml
vendored
|
@ -2,7 +2,11 @@
|
||||||
name: Ansible check debian:stable
|
name: Ansible check debian:stable
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
# yamllint disable-line rule:truthy
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
branches: '*'
|
||||||
|
pull_request:
|
||||||
|
branches: '*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
6
.github/workflows/ansible-linting-check.yml
vendored
6
.github/workflows/ansible-linting-check.yml
vendored
|
@ -2,7 +2,11 @@
|
||||||
name: Ansible Lint check
|
name: Ansible Lint check
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
# yamllint disable-line rule:truthy
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
branches: '*'
|
||||||
|
pull_request:
|
||||||
|
branches: '*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
20
.github/workflows/galaxy.yml
vendored
Normal file
20
.github/workflows/galaxy.yml
vendored
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
---
|
||||||
|
name: Galaxy release
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ['main']
|
||||||
|
release:
|
||||||
|
types: ['created']
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: galaxy
|
||||||
|
uses: robertdebock/galaxy-action@1.1.0
|
||||||
|
with:
|
||||||
|
galaxy_api_key: ${{ secrets.galaxy_api_key }}
|
10
.github/workflows/yamllint.yaml
vendored
10
.github/workflows/yamllint.yaml
vendored
|
@ -2,7 +2,11 @@
|
||||||
name: 'Yamllint GitHub Actions'
|
name: 'Yamllint GitHub Actions'
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
# yamllint disable-line rule:truthy
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
branches: '*'
|
||||||
|
pull_request:
|
||||||
|
branches: '*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
yamllint:
|
yamllint:
|
||||||
|
@ -16,7 +20,3 @@ jobs:
|
||||||
with:
|
with:
|
||||||
yamllint_file_or_dir: '.'
|
yamllint_file_or_dir: '.'
|
||||||
yamllint_config_filepath: './.yamllint'
|
yamllint_config_filepath: './.yamllint'
|
||||||
yamllint_strict: false
|
|
||||||
yamllint_comment: true
|
|
||||||
# env:
|
|
||||||
# GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }
|
|
||||||
|
|
|
@ -1,28 +1,24 @@
|
||||||
---
|
---
|
||||||
galaxy_info:
|
galaxy_info:
|
||||||
author: L3D
|
|
||||||
role_name: i3wm
|
role_name: i3wm
|
||||||
|
author: do1jlr
|
||||||
description: Install and configure i3wm on common linux distibutions (https://i3wm.org/)
|
description: Install and configure i3wm on common linux distibutions (https://i3wm.org/)
|
||||||
license: "MIT"
|
license: "MIT"
|
||||||
min_ansible_version: 2.3
|
min_ansible_version: 2.11
|
||||||
github_branch: master
|
github_branch: main
|
||||||
platforms:
|
platforms:
|
||||||
- name: Archlinux
|
- name: Archlinux
|
||||||
versions: all
|
versions: all
|
||||||
- name: Debian
|
- name: Debian
|
||||||
versions:
|
versions: all
|
||||||
- stretch
|
|
||||||
- jessie
|
|
||||||
- name: Ubuntu
|
- name: Ubuntu
|
||||||
versions:
|
versions: all
|
||||||
- bionic
|
|
||||||
- name: Fedora
|
- name: Fedora
|
||||||
versions:
|
versions: all
|
||||||
- 28
|
|
||||||
- 29
|
|
||||||
galaxy_tags:
|
galaxy_tags:
|
||||||
- i3wm
|
- i3wm
|
||||||
- arch
|
|
||||||
- desktop
|
- desktop
|
||||||
- linux
|
- linux
|
||||||
|
- xorg
|
||||||
|
- wayland
|
||||||
dependencies: []
|
dependencies: []
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
---
|
---
|
||||||
|
# Copyright (c) 2021 L3D <l3d@c3woc.de>
|
||||||
|
# this file is released with the MIT license.
|
||||||
|
# License: https://github.com/roles-ansible/ansible_role_template/blob/main/LICENSE
|
||||||
- name: Create directory for versionscheck
|
- name: Create directory for versionscheck
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
|
@ -32,11 +35,6 @@
|
||||||
when:
|
when:
|
||||||
- playbook_version.content|default("Mgo=")|b64decode|int - 1 >= playbook_version_number|int and submodules_versioncheck|bool
|
- playbook_version.content|default("Mgo=")|b64decode|int - 1 >= playbook_version_number|int and submodules_versioncheck|bool
|
||||||
|
|
||||||
- name: check if '/etc/ansible-version/' is empty
|
|
||||||
ansible.builtin.find:
|
|
||||||
paths: '/etc/ansible-version/'
|
|
||||||
register: filesFound
|
|
||||||
|
|
||||||
- name: write new version to remote disk
|
- name: write new version to remote disk
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
|
|
Loading…
Reference in a new issue