aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGaƫtan <36162164+gaetanfl@users.noreply.github.com>2021-11-19 15:27:26 +0100
committerGitHub <noreply@github.com>2021-11-19 15:27:26 +0100
commitd11535de777b5472de560d823edafe2373e702ae (patch)
treeb46244777514f6e89538ce33b2df8f90626a4f99
parentda255318b779446d7afd4784169374ce56d07c8c (diff)
parent2acad55d49f6ed90a842de7d1daa7c7bfb86b94b (diff)
downloadansible-rundeck-jobs-d11535de777b5472de560d823edafe2373e702ae.tar.gz
ansible-rundeck-jobs-d11535de777b5472de560d823edafe2373e702ae.tar.zst
ansible-rundeck-jobs-d11535de777b5472de560d823edafe2373e702ae.zip
Merge pull request #11 from gaetanfl/fix_ci
don't checkout already checkouted and use project
-rw-r--r--.github/workflows/pr.yml18
1 files changed, 9 insertions, 9 deletions
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml
index fed51c4..3daa0e2 100644
--- a/.github/workflows/pr.yml
+++ b/.github/workflows/pr.yml
@@ -11,13 +11,11 @@ jobs:
11 runs-on: ubuntu-latest 11 runs-on: ubuntu-latest
12 services: 12 services:
13 rundeck: 13 rundeck:
14 image: rundeck/rundeck:3.4.3 14 image: fretlink/rundeckforci:3.4.7-latest
15 ports: 15 ports:
16 - 4440:4440 16 - 4440:4440
17 env: 17 env:
18 RUNDECK_TOKENS_FILE: /tokens.properties 18 RUNDECK_TOKENS_FILE: /etc/tokens.properties
19 volumes:
20 - ${{ github.workspace }}/test/tokens.properties:/tokens.properties
21 options: >- 19 options: >-
22 --health-interval=10s 20 --health-interval=10s
23 --health-cmd="wget -t 1 -q -O /dev/null http://localhost:4440" 21 --health-cmd="wget -t 1 -q -O /dev/null http://localhost:4440"
@@ -26,10 +24,12 @@ jobs:
26 24
27 steps: 25 steps:
28 - uses: actions/checkout@v2 26 - uses: actions/checkout@v2
27 with:
28 path: "${{ github.repository }}"
29 - run: | 29 - run: |
30 apt update && apt install -y python3-pip wait-for-it 30 sudo apt update && sudo apt install -y python3-pip
31 pip3 install -r requirements.txt 31 pip3 install -r ${{ github.repository }}/requirements.txt
32 pip3 install -r tests/requirements.txt 32 pip3 install -r ${{ github.repository }}/tests/requirements.txt
33 - run: http localhost:4440/api/26/projects name=test X-Rundeck-Auth-Token:testtoken Accept:application/json 33 - run: http --ignore-stdin localhost:4440/api/26/projects name=test X-Rundeck-Auth-Token:testtoken Accept:application/json
34 - run: | 34 - run: |
35 cd tests && ansible-playbook -i inventory test.yml 35 cd ${{ github.repository }}/tests && ansible-playbook -i inventory test.yml