Skip to content

Commit

Permalink
Drop TravisCI and use GA
Browse files Browse the repository at this point in the history
  • Loading branch information
supertarto committed Nov 24, 2020
1 parent ecde137 commit c21f2cc
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 31 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
---
name: CI
'on':
pull_request:
push:
branches:
- master
schedule:
- cron: "0 5 * * 0"

defaults:
run:
working-directory: 'supertarto.wikijs'

jobs:

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Check out the codebase.
uses: actions/checkout@v2
with:
path: 'supertarto.wikijs'

- name: Set up Python 3.
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install test dependencies.
run: pip3 install yamllint ansible-lint

- name: Lint code.
run: |
yamllint .
ansible-lint
molecule:
name: Molecule
runs-on: ubuntu-latest
strategy:
matrix:
distrib:
- debian10:latest

steps:
- name: Check out the codebase.
uses: actions/checkout@v2
with:
path: 'supertarto.wikijs'

- name: Set up Python 3.
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install test dependencies.
run: pip3 install ansible molecule[docker] docker

- name: Run Molecule tests.
run: molecule test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
MOLECULE_DISTRIB: ${{ matrix.distrib }}
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Ansible Wiki.js
[![Build Status](https://travis-ci.com/supertarto/ansible-wikijs.svg?branch=master)](https://travis-ci.com/supertarto/ansible-wikijs)
[![CI](https://github.com/supertarto/ansible-wikijs/workflows/CI/badge.svg?event=push)](https://github.com/supertarto/ansible-wikijs/actions?query=workflow%3ACI)

Install and configure Wiki.js with Ansible.

Expand Down
5 changes: 2 additions & 3 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ dependency:
name: galaxy
driver:
name: docker
lint: |
yamllint .
ansible-lint
platforms:
- name: instance
image: "thetarto/ansible-${MOLECULE_DISTRIB}"
Expand All @@ -16,3 +13,5 @@ platforms:
pre_build_image: true
provisioner:
name: ansible
playbooks:
converge: ${MOLECULE_PLAYBOOK:-converge.yml}

0 comments on commit c21f2cc

Please sign in to comment.