Skip to content

Bump the github-actions group across 1 directory with 6 updates #178

Bump the github-actions group across 1 directory with 6 updates

Bump the github-actions group across 1 directory with 6 updates #178

Workflow file for this run

name: Build
on:
pull_request:
branches:
- main
push:
branches:
- main
tags:
- 'v*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
env:
PY_COLORS: 1
PYTHONUNBUFFERED: 1
jobs:
build:
runs-on: ubuntu-latest
name: Galaxy build
needs:
- pre-commit
- sanity
- molecule
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Install uv
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
- name: Setup Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version-file: ".python-version"
- name: galaxy build
run: |
uv run ansible-galaxy collection build
- name: galaxy publish
if: startsWith(github.ref, 'refs/tags/v')
run: >-
uv run ansible-galaxy collection publish
alfresco-platform-${GITHUB_REF#refs/tags/v}.tar.gz
--token "${{ secrets.ANSIBLE_GALAXY_API_KEY }}"
pre-commit:
runs-on: ubuntu-latest
name: Pre-commit
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Install uv
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
- name: Setup Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version-file: ".python-version"
- uses: Alfresco/alfresco-build-tools/.github/actions/pre-commit@v9.0.1
with:
skip_checkout: true
sanity:
runs-on: ubuntu-latest
name: Sanity against Ⓐ ${{ matrix.ansible }}
strategy:
matrix:
ansible:
- stable-2.16
- stable-2.17
- stable-2.18
steps:
- name: Perform sanity testing
# See the documentation for the following GitHub action on
# https://github.com/ansible-community/ansible-test-gh-action/blob/main/README.md
uses: ansible-community/ansible-test-gh-action@d3a8ec7a59694e25e210fcd44738910149537f0e # v1.17.0
with:
ansible-core-version: ${{ matrix.ansible }}
testing-type: sanity
coverage: never # codecov integration required
molecule:
runs-on: ubuntu-latest
name: Molecule against ${{ matrix.roles.role_name }} role
strategy:
matrix:
roles:
- role_name: java
- role_name: systemd_service
- role_name: hxi_connector
- role_name: audit_storage
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Install uv
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
- name: Setup Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version-file: ".python-version"
- name: Run molecule
env:
ANSIBLE_DIFF_ALWAYS: "true"
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
working-directory: roles/${{ matrix.roles.role_name }}
run: |
uv run molecule test