Skip to content

Commit

Permalink
feat: add initial test and release workflows and dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
karras committed Nov 9, 2023
1 parent a7e51f0 commit 54e94e2
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---

version: 2
updates:
# Maintain GitHub Action dependencies
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

# Maintain Python pip dependencies
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---

name: Release

on:
release:
types:
- published

jobs:
release:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Python 3
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Publish collection
run: |
ansible-galaxy role import karras ansible-role_ocis --token=${{ secrets.GALAXY_API_KEY }}
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---

name: Test

on:
push:
pull_request:

jobs:
test:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Python 3
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Lint with ansible-lint including yamllint
run: |
ansible-lint
#- name: Test with molecule
# run: |
# molecule test

0 comments on commit 54e94e2

Please sign in to comment.