Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
fauust committed Mar 11, 2024
1 parent 72c100e commit 6766739
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/composite-action/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Setup environment
runs:
using: "composite"
steps:
# See: https://github.com/actions/runner-images/issues/9425
- name: Patch crun
shell: bash
run: |
curl -Lo ./crun https://github.com/containers/crun/releases/download/1.14.3/crun-1.14.3-linux-amd64
sudo install crun /usr/bin/crun
# This is necessary on GH Actions to allow running systemd in rootless containers
# see: https://github.com/actions/virtual-environments/issues/3536
# see: https://github.com/ansible-community/molecule/discussions/3155
- name: Start systemd user service
shell: bash
run: |
loginctl enable-linger $(whoami)
sleep 1
8 changes: 1 addition & 7 deletions .github/workflows/test_cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,11 @@ jobs:
- alpine-3.19
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/composite-action
- name: Install requirements
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements.txt
# This is necessary on GH Actions to allow running systemd in rootless containers
# see: https://github.com/actions/virtual-environments/issues/3536
# see: https://github.com/ansible-community/molecule/discussions/3155
- name: Start systemd user service
run: |
loginctl enable-linger $(whoami)
sleep 1
- name: Run molecule
run: molecule test -s cluster
env:
Expand Down

0 comments on commit 6766739

Please sign in to comment.