Skip to content

Commit

Permalink
tests simpler tool description for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
martindemko committed Jan 2, 2025
1 parent abc4383 commit 624c7bb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 24 deletions.
42 changes: 19 additions & 23 deletions .github/actions/run-ansible-playbook/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@ name: run-ansible-playbook
runs:
using: 'composite'
steps:
# - name: Make SSH connection
# shell: bash
# run: |
# mkdir -p $HOME/.ssh
# install -m 600 -D /dev/null $HOME/.ssh/id_rsa
# echo "$SSH_PRIVATE_KEY" > $HOME/.ssh/id_rsa
# ssh -f -o StrictHostKeyChecking=no $TARGET_USER@$TARGET_HOSTNAME hostname
#
# - name: Install Ansible requirements
# shell: bash
# run: ansible-galaxy install -p roles -r requirements.yml
#
# - name: Create vault password
# shell: bash
# run: echo "$VAULT_PASSWORD" >.vault-password.txt
- name: Make SSH connection
shell: bash
run: |
mkdir -p $HOME/.ssh
install -m 600 -D /dev/null $HOME/.ssh/id_rsa
echo "$SSH_PRIVATE_KEY" > $HOME/.ssh/id_rsa
ssh -f -o StrictHostKeyChecking=no $TARGET_USER@$TARGET_HOSTNAME hostname
- name: Install Ansible requirements
shell: bash
run: ansible-galaxy install -p roles -r requirements.yml

- name: Create vault password
shell: bash
run: echo "$VAULT_PASSWORD" >.vault-password.txt

# - name: Run galaxy.yaml playbook
# shell: bash
Expand All @@ -33,13 +33,9 @@ runs:
# shell: bash
# run: ansible-playbook -vvv --limit $TARGET_HOSTNAME galaxy_tools.yml

# - name: Run galaxy_tests.yaml playbook
# shell: bash
# run: ansible-playbook -vvv --limit $TARGET_HOSTNAME galaxy_tests.yml

# - name: Publish report from tests
# shell: bash
# run: npx github-actions-ctrf /tmp/test_tools_report.json
- name: Run galaxy_tests.yaml playbook
shell: bash
run: ansible-playbook -vvv --limit $TARGET_HOSTNAME galaxy_tests.yml

# - name: Publish HTML report from testing
# uses: pavi2410/html-preview-action@v4
Expand All @@ -51,4 +47,4 @@ runs:
uses: turing85/publish-report@v2
with:
checkout: true
report-path: 'tool_test_output.html'
report-path: '/tmp/test_tools_report*.html'
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
tools:
- name: fastqc
owner: devteam
tool_shed_url: toolshed.g2.bx.psu.edu
# tool_shed_url: toolshed.g2.bx.psu.edu
#- name: bwa
# owner: devteam
# revisions:
Expand Down

0 comments on commit 624c7bb

Please sign in to comment.