forked from loliee/ansible-zsh
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 934 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Ansible CI
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
distro: [ubuntu1804, ubuntu2004, ubuntu2104, debian9, debian10]
steps:
-
name: Download test shim.
run: |
wget -O ${PWD}/tests/test-ansible-role.sh https://raw.githubusercontent.com/esolitos/gists/master/shell/test-ansible-role.sh
chmod +x ${PWD}/tests/test-ansible-role.sh
-
name: Run test
run: ${PWD}/tests/test-ansible-role.sh -d ${{ matrix.distro }}
publish:
needs:
- test
runs-on: ubuntu-latest
env:
ansible-galaxy-key: ${{ secrets.ANSIBLE_GALAXY_KEY }}
steps:
-
uses: actions/checkout@v2
-
name: Publish Ansible role to Galaxy
uses: robertdebock/galaxy-action@1.1.1
with:
galaxy_api_key: ${{ env.ansible-galaxy-key }}