summaryrefslogtreecommitdiffstats
path: root/collections-debian-merged/ansible_collections/ngine_io/exoscale/.github
diff options
context:
space:
mode:
Diffstat (limited to 'collections-debian-merged/ansible_collections/ngine_io/exoscale/.github')
-rw-r--r--collections-debian-merged/ansible_collections/ngine_io/exoscale/.github/workflows/publish.yml25
-rw-r--r--collections-debian-merged/ansible_collections/ngine_io/exoscale/.github/workflows/sanity.yml31
2 files changed, 56 insertions, 0 deletions
diff --git a/collections-debian-merged/ansible_collections/ngine_io/exoscale/.github/workflows/publish.yml b/collections-debian-merged/ansible_collections/ngine_io/exoscale/.github/workflows/publish.yml
new file mode 100644
index 00000000..0318edfc
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/ngine_io/exoscale/.github/workflows/publish.yml
@@ -0,0 +1,25 @@
+name: Upload release to Galaxy
+
+on:
+ release:
+ types: [created]
+
+jobs:
+ deploy:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v1
+ - name: Set up Python
+ uses: actions/setup-python@v1
+ with:
+ python-version: '3.x'
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install ansible
+ - name: Build and publish
+ env:
+ ANSIBLE_GALAXY_API_KEY: ${{ secrets.ANSIBLE_GALAXY_API_KEY }}
+ run: |
+ ansible-galaxy collection build .
+ ansible-galaxy collection publish *.tar.gz --api-key $ANSIBLE_GALAXY_API_KEY
diff --git a/collections-debian-merged/ansible_collections/ngine_io/exoscale/.github/workflows/sanity.yml b/collections-debian-merged/ansible_collections/ngine_io/exoscale/.github/workflows/sanity.yml
new file mode 100644
index 00000000..7e0fab5b
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/ngine_io/exoscale/.github/workflows/sanity.yml
@@ -0,0 +1,31 @@
+name: Sanity
+on:
+- pull_request
+
+jobs:
+ sanity:
+ name: Sanity (${{ matrix.ansible }})
+ strategy:
+ matrix:
+ ansible:
+ - stable-2.10
+ - stable-2.9
+ - devel
+ runs-on: ubuntu-latest
+ steps:
+
+ - name: Check out code
+ uses: actions/checkout@v1
+ with:
+ path: ansible_collections/ngine_io/exoscale
+
+ - name: Set up Python 3.6
+ uses: actions/setup-python@v1
+ with:
+ python-version: 3.6
+
+ - name: Install ansible-base (${{ matrix.ansible }})
+ run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
+
+ - name: Run sanity tests
+ run: ansible-test sanity --docker -v --color --python 3.6