mirror of
https://github.com/roles-ansible/ansible_role_restic/
synced 2024-12-12 12:50:18 +01:00
improve linting
This commit is contained in:
parent
cebb2cc6b4
commit
9dc223b12c
8 changed files with 67 additions and 58 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
style: github
|
style: github
|
||||||
template: CHANGELOG.tpl.md
|
template: CHANGELOG.tpl.md
|
||||||
info:
|
info:
|
||||||
|
|
16
.github/workflows/galaxy.yml
vendored
16
.github/workflows/galaxy.yml
vendored
|
@ -1,22 +1,20 @@
|
||||||
---
|
---
|
||||||
name: 🌌 Galaxy import
|
name: Galaxy release
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches: ['main']
|
||||||
- master
|
|
||||||
release:
|
release:
|
||||||
types:
|
types: ['created']
|
||||||
- published
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
import:
|
build:
|
||||||
name: 🚀 Galaxy Action
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: galaxy
|
- name: galaxy
|
||||||
uses: robertdebock/galaxy-action@1.1.1
|
uses: robertdebock/galaxy-action@1.1.0
|
||||||
with:
|
with:
|
||||||
galaxy_api_key: ${{ secrets.GALAXY_API_KEY }}
|
galaxy_api_key: ${{ secrets.galaxy_api_key }}
|
||||||
|
|
1
.github/workflows/test.yml
vendored
1
.github/workflows/test.yml
vendored
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
name: 🎭 Tests
|
name: 🎭 Tests
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
|
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
.DS_Store
|
.cache
|
||||||
|
.DS_Store
|
||||||
|
|
8
.yamllint
Normal file
8
.yamllint
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
---
|
||||||
|
extends: default
|
||||||
|
|
||||||
|
rules:
|
||||||
|
# 150 chars should be enough, but don't fail if a line is longer
|
||||||
|
line-length:
|
||||||
|
max: 150
|
||||||
|
level: warning
|
|
@ -1,18 +1,18 @@
|
||||||
---
|
---
|
||||||
- name: Stat test access file
|
- name: Stat test access file
|
||||||
stat:
|
stat:
|
||||||
path: ~/restic/access-test.sh
|
path: ~/restic/access-test.sh
|
||||||
register: test_file
|
register: test_file
|
||||||
- name: Check that the test access file exists
|
- name: Check that the test access file exists
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- test_file.stat.exists
|
- test_file.stat.exists
|
||||||
|
|
||||||
- name: Stat test_stdin access file
|
- name: Stat test_stdin access file
|
||||||
stat:
|
stat:
|
||||||
path: ~/restic/access-test_stdin.sh
|
path: ~/restic/access-test_stdin.sh
|
||||||
register: test_stdin_file
|
register: test_stdin_file
|
||||||
- name: Check that the test_stdin access file exists
|
- name: Check that the test_stdin access file exists
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- test_stdin_file.stat.exists
|
- test_stdin_file.stat.exists
|
||||||
|
|
|
@ -1,27 +1,27 @@
|
||||||
---
|
---
|
||||||
- name: Stat test backup file
|
- name: Stat test backup file
|
||||||
stat:
|
stat:
|
||||||
path: ~/restic/backup-test.sh
|
path: ~/restic/backup-test.sh
|
||||||
register: test_file
|
register: test_file
|
||||||
- name: Check that the test backup file exists
|
- name: Check that the test backup file exists
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- test_file.stat.exists
|
- test_file.stat.exists
|
||||||
|
|
||||||
- name: Stat test_stdin backup file
|
- name: Stat test_stdin backup file
|
||||||
stat:
|
stat:
|
||||||
path: ~/restic/backup-test_stdin.sh
|
path: ~/restic/backup-test_stdin.sh
|
||||||
register: test_stdin_file
|
register: test_stdin_file
|
||||||
- name: Check that the test_stdin backup file exists
|
- name: Check that the test_stdin backup file exists
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- test_stdin_file.stat.exists
|
- test_stdin_file.stat.exists
|
||||||
|
|
||||||
- name: Run the backup scripts
|
- name: Run the backup scripts
|
||||||
shell: "./{{ item }}"
|
shell: "./{{ item }}"
|
||||||
args:
|
args:
|
||||||
chdir: ~/restic/
|
chdir: ~/restic/
|
||||||
with_items:
|
with_items:
|
||||||
- backup-dicttest.sh
|
- backup-dicttest.sh
|
||||||
- backup-test.sh
|
- backup-test.sh
|
||||||
- backup-test_stdin.sh
|
- backup-test_stdin.sh
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
---
|
---
|
||||||
- name: Stat test restic link
|
- name: Stat test restic link
|
||||||
stat:
|
stat:
|
||||||
path: ~/restic/restic
|
path: ~/restic/restic
|
||||||
register: restic_link
|
register: restic_link
|
||||||
- name: Check that the test restic link exists
|
- name: Check that the test restic link exists
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- restic_link.stat.exists
|
- restic_link.stat.exists
|
||||||
|
|
Loading…
Reference in a new issue