diff options
author | Gaëtan Duchaussois <gaetan.duchaussois@fretlink.com> | 2021-11-05 15:00:10 +0100 |
---|---|---|
committer | Gaëtan Duchaussois <gaetan.duchaussois@fretlink.com> | 2021-11-15 17:52:54 +0100 |
commit | 1371725a6ca716b25fbd39c850665e3b46bbf81f (patch) | |
tree | c91242a7b51c13018d91cb0ade3b8384dd6ae686 /.github/workflows | |
parent | da255318b779446d7afd4784169374ce56d07c8c (diff) | |
download | ansible-rundeck-jobs-1371725a6ca716b25fbd39c850665e3b46bbf81f.tar.gz ansible-rundeck-jobs-1371725a6ca716b25fbd39c850665e3b46bbf81f.tar.zst ansible-rundeck-jobs-1371725a6ca716b25fbd39c850665e3b46bbf81f.zip |
don't checkout already checkouted and use project
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/pr.yml | 18 |
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 |
9 | jobs: | 9 | jobs: |
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 |