Skip to content

Commit

Permalink
Upload coll
Browse files Browse the repository at this point in the history
  • Loading branch information
nahsi committed Feb 9, 2024
1 parent abf4304 commit 71dac4e
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion .github/workflows/ansible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,34 @@ jobs:
# reporter: github-pr-check
# fail_on_error: true

collection:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup python
uses: actions/setup-python@v5
with:
python-version: "3.x"
cache: pip

- name: Install python dependencies
run: python -m pip install -r requirements.txt

- name: Build collection
run: ansible-galaxy collection build .

- name: Upload collection
uses: actions/upload-artifact@v4
with:
path: fluencelabs-provider-*.tar.gz
name: collection
if-no-files-found: error

molecule:
runs-on: ubuntu-latest

# needs: lint
needs: collection

strategy:
fail-fast: false
Expand Down Expand Up @@ -65,6 +89,14 @@ jobs:
- name: Install python dependencies
run: python -m pip install -r requirements.txt

- name: Download collection
uses: actions/download-artifact@v4
with:
name: collection

- name: Install collection
run: ansible-galaxy collection install fluencelabs-provider-*.tar.gz

- name: Run ${{ matrix.scenario }} scenario
working-directory: extensions
run: molecule test --scenario-name "${{ matrix.scenario }}"

0 comments on commit 71dac4e

Please sign in to comment.