Skip to content

Commit

Permalink
Apply review remarks
Browse files Browse the repository at this point in the history
  • Loading branch information
WStechura committed May 30, 2024
1 parent bbc0dca commit d119f71
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ on:
workflow_dispatch:
workflow_call:

env:
FILES_DIR: roles/oneagent/files

jobs:
build-and-test:
runs-on: ubuntu-latest
Expand All @@ -31,20 +34,18 @@ jobs:
python-version: '3.10'
- name: Installing dependencies
run: pip install ansible
- name: Download certificate
run: mkdir $FILES_DIR && wget https://ca.dynatrace.com/dt-root.cert.pem -P $FILES_DIR
- name: Building the collection
run: ansible-galaxy collection build .
- name: Installing the collection
run: ansible-galaxy collection install dynatrace-oneagent*
- name: Running sanity test
run: pushd ~/.ansible/collections/ansible_collections/dynatrace/oneagent && ansible-test sanity && popd
- name: ddd
run: echo "{{ github.ref }}"
publish-local:
if: github.ref != 'ref/heads/main'
needs: build-and-test
steps:
- uses: actions/upload-artifact@v4
- name: Publish artifact
if: ${{ contains(github.ref, 'refs/heads/main') }}
uses: actions/upload-artifact@v4
with:
name: dynatrace-oneagent-${{ github.sha }}
retention-days: 7
path: dynatrace-oneagent*
name: dynatrace-oneagent-${{ github.sha }}
retention-days: 7
path: dynatrace-oneagent*

0 comments on commit d119f71

Please sign in to comment.