Skip to content

Commit

Permalink
ci: upgrade pipeline to new standard structure
Browse files Browse the repository at this point in the history
  • Loading branch information
tboerger committed Jul 20, 2023
1 parent d88e92c commit 7ff3e3c
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 69 deletions.
1 change: 1 addition & 0 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# workflows
3 changes: 2 additions & 1 deletion .github/workflows/galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
name: galaxy

"on":
workflow_dispatch:
push:
branches:
- master
tags:
- v*
workflow_dispatch:

jobs:
galaxy:
runs-on: ubuntu-latest
if: github.repository_owner == 'rolehippie'

steps:
- name: Checkout source
Expand Down
18 changes: 13 additions & 5 deletions .github/workflows/general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@
name: general

"on":
workflow_dispatch:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:

jobs:
linting:
runs-on: ubuntu-latest
if: github.repository_owner == 'rolehippie'

steps:
- name: Checkout source
Expand All @@ -23,6 +24,7 @@ jobs:

testing:
runs-on: ubuntu-latest
if: github.repository_owner == 'rolehippie'

strategy:
fail-fast: false
Expand All @@ -35,12 +37,18 @@ jobs:
- name: Checkout source
uses: actions/checkout@v3

- name: Molecule tests
uses: gofrolist/molecule-action@v2
- name: Setup Python
uses: actions/setup-python@v4
with:
molecule_command: test
molecule_args: --scenario-name ${{ matrix.scenario }}
python-version: 3.x

- name: Install dependencies
run: pip3 install docker pytest-testinfra ansible molecule molecule-plugins[docker]

- name: Molecule tests
run: molecule test --scenario-name ${{ matrix.scenario }}
env:
PY_COLORS: "1"
ANSIBLE_FORCE_COLOR: "1"

...
23 changes: 0 additions & 23 deletions .github/workflows/lock.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/react.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .github/workflows/readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
name: readme

"on":
workflow_dispatch:
push:
branches:
- master
workflow_dispatch:

jobs:
readme:
runs-on: ubuntu-latest
if: github.repository_owner == 'rolehippie'

steps:
- name: Checkout source
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,21 @@
name: release

"on":
workflow_dispatch:
schedule:
- cron: "0 8 * * 1"
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest
if: github.repository_owner == 'rolehippie'

steps:
- name: Checkout source
uses: actions/checkout@v3
with:
token: ${{ secrets.BOT_ACCESS_TOKEN }}

- name: Write buildtime
run: date >| .github/RELEASEDATE

- name: Semantic release
uses: cycjimmy/semantic-release-action@v3
env:
Expand All @@ -27,6 +25,9 @@ jobs:
extra_plugins: |
conventional-changelog-conventionalcommits
- name: Write buildtime
run: date >| .github/RELEASEDATE

- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
Expand Down
8 changes: 4 additions & 4 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
dependency:
name: galaxy
options:
role-file: molecule/requirements.yml
requirements-file: molecule/requirements.yml
env:
ANSIBLE_GALAXY_DISPLAY_PROGRESS: "false"

Expand All @@ -23,7 +23,7 @@ platforms:
- /run
- /run/lock
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup
- /sys/fs/cgroup:/sys/fs/cgroup:rw
environment:
container: docker
- name: rclone-ubuntu-20
Expand All @@ -38,7 +38,7 @@ platforms:
- /run
- /run/lock
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup
- /sys/fs/cgroup:/sys/fs/cgroup:rw
environment:
container: docker
- name: rclone-ubuntu-18
Expand All @@ -53,7 +53,7 @@ platforms:
- /run
- /run/lock
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup
- /sys/fs/cgroup:/sys/fs/cgroup:rw
environment:
container: docker

Expand Down

0 comments on commit 7ff3e3c

Please sign in to comment.