aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/pr.yml18
1 files changed, 13 insertions, 5 deletions
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml
index fed51c4..b4a20da 100644
--- a/.github/workflows/pr.yml
+++ b/.github/workflows/pr.yml
@@ -7,8 +7,11 @@ on:
7 branches: 7 branches:
8 - master 8 - master
9jobs: 9jobs:
10 prepare:
11 run
10 tests: 12 tests:
11 runs-on: ubuntu-latest 13 runs-on: ubuntu-latest
14 uses: actions/checkout@v2
12 services: 15 services:
13 rundeck: 16 rundeck:
14 image: rundeck/rundeck:3.4.3 17 image: rundeck/rundeck:3.4.3
@@ -23,13 +26,18 @@ jobs:
23 --health-cmd="wget -t 1 -q -O /dev/null http://localhost:4440" 26 --health-cmd="wget -t 1 -q -O /dev/null http://localhost:4440"
24 --health-timeout 5s 27 --health-timeout 5s
25 --health-retries 15 28 --health-retries 15
29 --entrypoint
26 30
27 steps: 31 steps:
28 - uses: actions/checkout@v2 32 - uses: actions/checkout@v2
33 with:
34 clean: false
35 path: "${{ github.repository }}"
29 - run: | 36 - run: |
30 apt update && apt install -y python3-pip wait-for-it 37 cat /home/runner/work/ansible-rundeck-jobs/ansible-rundeck-jobs/test/tokens.properties
31 pip3 install -r requirements.txt 38 sudo apt update && sudo apt install -y python3-pip
32 pip3 install -r tests/requirements.txt 39 pip3 install -r ${{ github.repository }}/requirements.txt
33 - run: http localhost:4440/api/26/projects name=test X-Rundeck-Auth-Token:testtoken Accept:application/json 40 pip3 install -r ${{ github.repository }}/tests/requirements.txt
41 - run: http --ignore-stdin localhost:4440/api/26/projects name=test X-Rundeck-Auth-Token:testtoken Accept:application/json
34 - run: | 42 - run: |
35 cd tests && ansible-playbook -i inventory test.yml 43 cd ${{ github.repository }}/tests && ansible-playbook -i inventory test.yml