8
8
- name : Checkout
9
9
uses : actions/checkout@v3
10
10
11
- # - name: Make SSH connection
12
- # shell: bash
13
- # run: |
14
- # mkdir -p $HOME/.ssh
15
- # install -m 600 -D /dev/null $HOME/.ssh/id_rsa
16
- # echo "$SSH_PRIVATE_KEY" > $HOME/.ssh/id_rsa
17
- # ssh -f -o StrictHostKeyChecking=no $TARGET_USER@$TARGET_HOSTNAME hostname
18
- #
19
- # - name: Install Ansible requirements
20
- # shell: bash
21
- # run: ansible-galaxy install -p roles -r requirements.yml
22
- #
23
- # - name: Create vault password
24
- # shell: bash
25
- # run: echo "$VAULT_PASSWORD" >.vault-password.txt
11
+ - name : Make SSH connection
12
+ shell : bash
13
+ run : |
14
+ mkdir -p $HOME/.ssh
15
+ install -m 600 -D /dev/null $HOME/.ssh/id_rsa
16
+ echo "$SSH_PRIVATE_KEY" > $HOME/.ssh/id_rsa
17
+ ssh -f -o StrictHostKeyChecking=no $TARGET_USER@$TARGET_HOSTNAME hostname
18
+
19
+ - name : Install Ansible requirements
20
+ shell : bash
21
+ run : ansible-galaxy install -p roles -r requirements.yml
22
+
23
+ - name : Create vault password
24
+ shell : bash
25
+ run : echo "$VAULT_PASSWORD" >.vault-password.txt
26
26
27
27
# - name: Run galaxy.yaml playbook
28
28
# shell: bash
@@ -36,32 +36,13 @@ runs:
36
36
# shell: bash
37
37
# run: ansible-playbook -vvv --limit $TARGET_HOSTNAME galaxy_tools.yml
38
38
39
- # - name: Run galaxy_tests.yaml playbook
40
- # shell: bash
41
- # run: ansible-playbook -vvv --limit $TARGET_HOSTNAME galaxy_tests.yml
42
-
43
- # - name: Publish HTML report from testing
44
- # uses: pavi2410/html-preview-action@v4
45
- # with:
46
- # html_file: '/tmp/test_tools_report.html'
47
- # job_summary: true
39
+ - name : Run galaxy_tests.yaml playbook
40
+ shell : bash
41
+ run : ansible-playbook -vvv --limit $TARGET_HOSTNAME galaxy_tests.yml
48
42
49
43
- name : Upload test report to display
50
44
uses : actions/upload-artifact@v4
51
45
with :
52
46
name : test-tool-report
53
47
path : test_tools_report.html
54
48
if-no-files-found : error
55
- compression-level : 0 # no compression
56
-
57
- - name : HTML Preview
58
- id : html_preview
59
- uses : pavi2410/html-preview-action@v2
60
- with :
61
- html_file : ' test_tools_report.html'
62
-
63
- # - name: Publish HTML report from testing
64
- # uses: turing85/publish-report@v2
65
- # with:
66
- # checkout: true
67
- # report-path: test_tools_report.html
0 commit comments