]>
Commit | Line | Data |
---|---|---|
ce8b31de GD |
1 | name: Test PR |
2 | on: | |
3 | push: | |
4 | branches: | |
5 | - master | |
6 | pull_request: | |
7 | branches: | |
8 | - master | |
9 | jobs: | |
10 | tests: | |
11 | runs-on: ubuntu-latest | |
12 | services: | |
13 | rundeck: | |
2acad55d | 14 | image: fretlink/rundeckforci:3.4.7-latest |
ce8b31de GD |
15 | ports: |
16 | - 4440:4440 | |
17 | env: | |
2acad55d | 18 | RUNDECK_TOKENS_FILE: /etc/tokens.properties |
ce8b31de GD |
19 | options: >- |
20 | --health-interval=10s | |
21 | --health-cmd="wget -t 1 -q -O /dev/null http://localhost:4440" | |
22 | --health-timeout 5s | |
23 | --health-retries 15 | |
24 | ||
25 | steps: | |
26 | - uses: actions/checkout@v2 | |
1371725a | 27 | with: |
1371725a | 28 | path: "${{ github.repository }}" |
ce8b31de | 29 | - run: | |
1371725a GD |
30 | sudo apt update && sudo apt install -y python3-pip |
31 | pip3 install -r ${{ github.repository }}/requirements.txt | |
32 | pip3 install -r ${{ github.repository }}/tests/requirements.txt | |
33 | - run: http --ignore-stdin localhost:4440/api/26/projects name=test X-Rundeck-Auth-Token:testtoken Accept:application/json | |
ce8b31de | 34 | - run: | |
1371725a | 35 | cd ${{ github.repository }}/tests && ansible-playbook -i inventory test.yml |