10 types: [created, edited, published]
13 runs-on: ubuntu-latest
16 image: fretlink/rundeckforci:3.4.7-latest
20 RUNDECK_TOKENS_FILE: /etc/tokens.properties
23 --health-cmd="wget -t 1 -q -O /dev/null http://localhost:4440"
28 - uses: actions/checkout@v2
30 path: "${{ github.repository }}"
31 - name: Lint Ansible Playbook
32 uses: ansible/ansible-lint-action@master
34 targets: "${{ github.repository }}"
35 # override lint version due to
36 # https://github.com/ansible/ansible-lint-action/issues/59
40 sudo apt update && sudo apt install -y python3-pip
41 pip3 install -r ${{ github.repository }}/requirements.txt
42 pip3 install -r ${{ github.repository }}/tests/requirements.txt
43 - run: http --ignore-stdin localhost:4440/api/26/projects name=test X-Rundeck-Auth-Token:testtoken Accept:application/json
45 cd ${{ github.repository }}/tests && ansible-playbook -i inventory test.yml
47 runs-on: ubuntu-latest
49 if: ${{ github.event_name == 'release' }}
51 - uses: actions/checkout@v2
52 - name: Upload to ansible-galaxy
53 uses: robertdebock/galaxy-action@1.1.0
55 galaxy_api_key: '${{ secrets.GALAXY_API_KEY }}'