Use Github actions for testing. (#35)

* Move linting to CI file, change badge.
This commit is contained in:
Manu 2020-03-09 13:23:13 +08:00 committed by GitHub
parent 12e8bca74c
commit 10521fe838
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 16 deletions

21
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: Test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install Molecule
run: pip install molecule[lint,docker]
- name: Lint
run: |
yamllint .
ansible-lint
- name: Test using Molecule
run: molecule test

View File

@ -1,11 +0,0 @@
---
sudo: required
language: python
services:
- docker
before_install:
- sudo apt-get -qq update
install:
- pip install molecule[lint,docker]
script:
- molecule test

View File

@ -1,6 +1,6 @@
# Ansible Role: BorgBackup Client
[![Build Status](https://travis-ci.org/borgbase/ansible-role-borgbackup.svg?branch=master)](https://travis-ci.org/borgbase/ansible-role-borgbackup) [![Ansible Galaxy](https://img.shields.io/ansible/role/30531)](https://galaxy.ansible.com/m3nu/ansible_role_borgbackup)
![Test](https://github.com/m3nu/ansible-role-borgbackup/workflows/Test/badge.svg) [![Ansible Galaxy](https://img.shields.io/ansible/role/30531)](https://galaxy.ansible.com/m3nu/ansible_role_borgbackup)
Set up encrypted, compressed and deduplicated backups using [BorgBackup](https://borgbackup.readthedocs.io/en/stable/) and [Borgmatic](https://github.com/witten/borgmatic). Currently supports Debian/Ubuntu and CentOS/Red Hat.

View File

@ -3,10 +3,6 @@ dependency:
name: galaxy
driver:
name: docker
lint: |
set -e
yamllint .
ansible-lint
platforms:
- name: centos-7
image: centos:7