Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Switch to github actions

Fabian Koller51fd19c3156b
diff --git a/.github/workflows/ansible.yml b/.github/workflows/ansible.yml
new file mode 100644
index 000000000..41c13c774
--- /dev/null
+++ b/.github/workflows/ansible.yml
@@ -0,0 +1,33 @@
+---
+name: Ansible Role
+
+on: push
+
+jobs:
+ test:
+ # https://molecule.readthedocs.io/en/latest/ci.html#github-actions
+ runs-on: ubuntu-latest
+ # https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions#github-context
+ if: contains(github.ref, 'refs/heads/')
+ steps:
+ - name: Check out the codebase
+ uses: actions/checkout@v2
+ with:
+ path: "${{ github.repository }}"
+ - name: Set up Python
+ uses: actions/setup-python@v2
+ - name: Set up Docker
+ uses: docker-practice/actions-setup-docker@master
+ - name: Install dependencies
+ run: |
+ python3 -m pip install --upgrade pip
+ python3 -m pip install molecule[ansible,docker]
+ ansible --version
+ docker --version
+ molecule --version
+ python --version
+ - name: Test with molecule
+ run: |
+ cd ansible
+ molecule test
+ working-directory: "${{ github.repository }}"
diff --git a/.travis.yml b/.travis.yml
index e36b1ca99..b745d6bd7 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -33,16 +33,6 @@ jobs:
- ng build --prod
after_success: true
- - name: "Ansible role"
- sudo: required
- services:
- - docker
- install:
- - python3 -m pip install molecule[ansible,docker]
- script:
- - cd ansible/
- - molecule test
- after_success: true
before_install:
- sudo apt-get update -qq