diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index cbef439..6fddab1 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -12,22 +12,22 @@ jobs: publish: name: Publish Collection to Ansible Galaxy runs-on: ubuntu-latest - + steps: - name: Checkout code uses: actions/checkout@v4 - + - name: Set up Python uses: actions/setup-python@v5 with: python-version: '3.11' - + - name: Install Ansible run: pip install ansible-core - + - name: Build collection run: ansible-galaxy collection build - + - name: Verify build run: | echo "Built collection:" @@ -35,14 +35,14 @@ jobs: echo "" echo "Contents preview:" tar -tzf valid-nsupdate_zone-*.tar.gz | head -30 - + - name: Publish to Ansible Galaxy run: | ansible-galaxy collection publish valid-nsupdate_zone-*.tar.gz --token ${{ secrets.GALAXY_API_TOKEN }} if: github.event_name == 'release' || github.event_name == 'workflow_dispatch' env: GALAXY_API_TOKEN: ${{ secrets.GALAXY_API_TOKEN }} - + - name: Upload collection artifact uses: actions/upload-artifact@v4 with: diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 2a7f8d2..edc315e 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -19,25 +19,25 @@ jobs: - stable-2.16 - stable-2.17 - devel - + steps: - name: Checkout code uses: actions/checkout@v4 with: path: ansible_collections/valid/nsupdate_zone - + - name: Set up Python uses: actions/setup-python@v5 with: python-version: '3.11' - + - name: Install Ansible run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible-version }}.tar.gz --disable-pip-version-check - + - name: Install collection dependencies run: pip install -r requirements.txt working-directory: ansible_collections/valid/nsupdate_zone - + - name: Run sanity tests run: ansible-test sanity --docker -v --color working-directory: ansible_collections/valid/nsupdate_zone @@ -45,16 +45,16 @@ jobs: syntax: name: Python Syntax Check runs-on: ubuntu-latest - + steps: - name: Checkout code uses: actions/checkout@v4 - + - name: Set up Python uses: actions/setup-python@v5 with: python-version: '3.11' - + - name: Check Python syntax run: | python -m py_compile plugins/modules/nsupdate_zone.py @@ -64,22 +64,22 @@ jobs: build: name: Build Collection runs-on: ubuntu-latest - + steps: - name: Checkout code uses: actions/checkout@v4 - + - name: Set up Python uses: actions/setup-python@v5 with: python-version: '3.11' - + - name: Install Ansible run: pip install ansible-core - + - name: Build collection run: ansible-galaxy collection build - + - name: Verify tarball run: | if [ -f valid-nsupdate_zone-*.tar.gz ]; then @@ -90,7 +90,7 @@ jobs: echo "✗ Collection build failed" exit 1 fi - + - name: Upload collection artifact uses: actions/upload-artifact@v4 with: @@ -101,27 +101,27 @@ jobs: lint: name: YAML and Ansible Lint runs-on: ubuntu-latest - + steps: - name: Checkout code uses: actions/checkout@v4 with: path: ansible_collections/valid/nsupdate_zone - + - name: Set up Python uses: actions/setup-python@v5 with: python-version: '3.11' - + - name: Install dependencies run: | pip install ansible-core ansible-lint yamllint - + - name: Run yamllint run: yamllint . working-directory: ansible_collections/valid/nsupdate_zone continue-on-error: true - + - name: Run ansible-lint run: ansible-lint working-directory: ansible_collections/valid/nsupdate_zone @@ -130,21 +130,21 @@ jobs: documentation: name: Documentation Check runs-on: ubuntu-latest - + steps: - name: Checkout code uses: actions/checkout@v4 with: path: ansible_collections/valid/nsupdate_zone - + - name: Set up Python uses: actions/setup-python@v5 with: python-version: '3.11' - + - name: Install Ansible run: pip install ansible-core - + - name: Validate module documentation run: | ansible-doc valid.nsupdate_zone.nsupdate_zone @@ -153,24 +153,24 @@ jobs: unit: name: Unit Tests runs-on: ubuntu-latest - + steps: - name: Checkout code uses: actions/checkout@v4 with: path: ansible_collections/valid/nsupdate_zone - + - name: Set up Python uses: actions/setup-python@v5 with: python-version: '3.11' - + - name: Install Ansible and dependencies run: | pip install ansible-core pip install -r requirements.txt working-directory: ansible_collections/valid/nsupdate_zone - + - name: Run unit tests run: | if [ -d "tests/unit/plugins/modules" ] && [ "$(ls -A tests/unit/plugins/modules)" ]; then diff --git a/valid-nsupdate_zone-1.2.0.tar.gz b/valid-nsupdate_zone-1.2.0.tar.gz new file mode 100644 index 0000000..80838d8 Binary files /dev/null and b/valid-nsupdate_zone-1.2.0.tar.gz differ