Skip to content

Commit

Permalink
Fix names
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubrak committed Oct 15, 2024
1 parent 146365f commit 43e46a6
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 33 deletions.
8 changes: 4 additions & 4 deletions .github/actions/build-collection/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: build-collection
description: Builds the collection
name: "Build collection"
description: "Builds the collection"

runs:
using: composite
steps:
- name: Download certificate
- name: "Download certificate"
shell: bash
run: mkdir -p $FILES_DIR && wget https://ca.dynatrace.com/dt-root.cert.pem -P $FILES_DIR
- name: Build the collection
- name: "Build the collection"
shell: bash
run: ansible-galaxy collection build . -vvv
4 changes: 2 additions & 2 deletions .github/actions/publish-to-ansible-galaxy/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: publish-to-ansible-galaxy
name: "Publish to Ansible Galaxy"
description: Publish to Ansible Galaxy

inputs:
Expand All @@ -23,6 +23,6 @@ inputs:
runs:
using: composite
steps:
- name: Publish the Ansible collection
- name: "Publish the Ansible collection"
shell: bash
run: ansible-galaxy collection publish dynatrace-oneagent* --token ${{ inputs.ansible-galaxy-api-token }}
12 changes: 6 additions & 6 deletions .github/actions/run-component-tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,28 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: run-component-tests
description: Runs component tests
name: "Run component tests"
description: "Runs component tests"

runs:
using: composite
steps:
- name: Prepare Python environment
- name: "Prepare Python environment"
shell: bash
run: python -m virtualenv roles/oneagent/tests/component/venv &&
source roles/oneagent/tests/component/venv/bin/activate &&
pip install -r roles/oneagent/tests/component/resources/requirements.txt

- name: Install the collection
- name: "Install the collection"
shell: bash
run: sudo bash -c "source roles/oneagent/tests/component/venv/bin/activate && ansible-galaxy collection install -vvv dynatrace-oneagent*"

- name: Run component tests
- name: "Run component tests"
shell: bash
run: cd roles/oneagent/tests/component &&
sudo bash -c "source venv/bin/activate && python run.py --linux_x86=localhost"

- name: Upload logs
- name: "Upload logs"
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/actions/run-sanity-tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
# limitations under the License.

name: run-sanity-tests
description: Runs sanity tests
description: "Runs sanity tests"

runs:
using: composite
steps:
- name: Install the collection
- name: "Install the collection"
shell: bash
run: ansible-galaxy collection install -vvv dynatrace-oneagent*

- name: Run sanity test
- name: "Run sanity test"
shell: bash
run: pushd ~/.ansible/collections/ansible_collections/dynatrace/oneagent && ansible-test sanity && popd
6 changes: 3 additions & 3 deletions .github/actions/set-environment-variables/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: Set environment variables
description: Set environment variables required for other actions
name: "Set environment variables"
description: "Set environment variables required for other actions"

runs:
using: composite
steps:
- name: Set environment variables
- name: "Set environment variables"
shell: bash
run: printf "FILES_DIR=roles/oneagent/files\n" >> $GITHUB_ENV
6 changes: 3 additions & 3 deletions .github/actions/setup-build-environment/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: setup-build-environment
description: Prepares build environment
name: "Prepare build environment"
description: "Prepares build environment"

runs:
using: composite
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
- name: "Install dependencies"
shell: bash
run: pip install virtualenv ansible
14 changes: 7 additions & 7 deletions .github/actions/update-version/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,35 +12,35 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: update-version
description: Update version
name: "Update version"
description: "Updates version"

runs:
using: composite
steps:
- name: Get latest tag
- name: "Get latest tag"
shell: bash
run: printf "LATEST_TAG=%s\n" "$(git describe --tags --abbrev=0 --always)" >> $GITHUB_ENV

- name: Extract version
- name: "Extract version"
shell: bash
run: |
latestTag="${{ env.LATEST_TAG }}"
printf "LATEST_VERSION=%s\n" "${latestTag#v}" >> $GITHUB_ENV
- name: Update galaxy.yml version
- name: "Update galaxy.yml version"
shell: bash
run: |
latestVersion="${{ env.LATEST_VERSION }}"
sed -i "s/version: .*/version: ${latestVersion}/" galaxy.yml
- name: Configure git
- name: "Configure git"
shell: bash
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Commit and push changes
- name: "Commit and push changes"
shell: bash
run: |
git checkout master
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/upload-collection/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: upload-collection
name: "Upload collection"
description: Uploads the collection locally

runs:
using: composite
steps:
- name: Publish artifact
- name: "Publish artifact"
uses: actions/upload-artifact@v4
with:
name: dynatrace-oneagent-${{ github.sha }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: Build and test
name: "Build and test"
on:
pull_request:
branches: [ "*" ]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-test-and-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: Build, test and publish
name: "Build, test and publish"
on:
push:
tags:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-test-and-upload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: Build, test and upload
name: "Build, test and upload"
on:
pull_request:
workflow_dispatch:
Expand Down

0 comments on commit 43e46a6

Please sign in to comment.