diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index f26f63a..6c8a376 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -5,7 +5,7 @@ on: jobs: molecule: name: cache - runs-on: macos-13 + runs-on: macos-12 env: PYTHON_VERSION: "3.11" @@ -58,26 +58,26 @@ jobs: restore-keys: | vagrant-boxes - - name: Configure Homebrew cache - uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0 - id: cache-homebrew - with: - path: | - ~/Library/Caches/Homebrew - key: brew-${{ hashFiles('./Brewfile') }} - restore-keys: brew- + # - name: Configure Homebrew cache + # uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0 + # id: cache-homebrew + # with: + # path: | + # ~/Library/Caches/Homebrew + # key: brew-${{ hashFiles('./Brewfile') }} + # restore-keys: brew- - - name: Update Homebrew - if: | # only run if false since this is just a cache step - steps.cache-homebrew.outputs.cache-hit != 'true' || steps.cache-homebrew.outputs.cache-hit != 'true' - run: | - brew update --preinstall + # - name: Update Homebrew + # if: | # only run if false since this is just a cache step + # steps.cache-homebrew.outputs.cache-hit != 'true' || steps.cache-homebrew.outputs.cache-hit != 'true' + # run: | + # brew update --preinstall - - name: Install Homebrew dependencies - if: | # only run if false since this is just a cache step - steps.cache-homebrew.outputs.cache-hit != 'true' || steps.cache-homebrew.outputs.cache-hit != 'true' - run: | - env HOMEBREW_NO_AUTO_UPDATE=1 brew bundle --no-upgrade --file ./Brewfile + # - name: Install Homebrew dependencies + # if: | # only run if false since this is just a cache step + # steps.cache-homebrew.outputs.cache-hit != 'true' || steps.cache-homebrew.outputs.cache-hit != 'true' + # run: | + # env HOMEBREW_NO_AUTO_UPDATE=1 brew bundle --no-upgrade --file ./Brewfile - name: Download Vagrant boxes for all scenarios # To save some cache space, all scenarios share the same cache key. diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 580d0ce..8bb1f84 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -5,7 +5,7 @@ on: jobs: pre-commit-ci: name: Pre-Commit - runs-on: macos-13 + runs-on: macos-12 env: PYTHON_VERSION: "3.11" @@ -46,7 +46,7 @@ jobs: ensure-pinned-actions: name: Ensure SHA Pinned Actions - runs-on: macos-13 + runs-on: macos-12 steps: - name: Checkout code uses: actions/checkout@e2f20e631ae6d7dd3b768f56a5d2af784dd54791 # v3 2.5.0 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2235484..dcf8cdc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,7 +5,7 @@ on: jobs: molecule: name: Molecule - runs-on: macos-13 + runs-on: macos-12 strategy: matrix: scenario: @@ -28,19 +28,19 @@ jobs: path: ~/.ansible/collections key: ansible-${{ hashFiles('collections/requirements.yml') }} - - name: Restore Homebrew cache - uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0 - with: - path: ~/Library/Caches/Homebrew - key: brew-${{ hashFiles('./Brewfile') }} + # - name: Restore Homebrew cache + # uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0 + # with: + # path: ~/Library/Caches/Homebrew + # key: brew-${{ hashFiles('./Brewfile') }} - - name: Update Homebrew - run: | - brew update --preinstall + # - name: Update Homebrew + # run: | + # brew update --preinstall - - name: Install Homebrew dependencies - run: | - env HOMEBREW_NO_AUTO_UPDATE=1 brew bundle --no-upgrade --file ./Brewfile + # - name: Install Homebrew dependencies + # run: | + # env HOMEBREW_NO_AUTO_UPDATE=1 brew bundle --no-upgrade --file ./Brewfile - name: Restore vagrant Boxes cache uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0 diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index 4177ece..5013112 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -8,7 +8,7 @@ platforms: - name: control1 box: generic/ubuntu2204 memory: 1024 - cpus: 2 + cpus: 1 groups: - k3s_cluster - master @@ -24,7 +24,7 @@ platforms: - name: control2 box: generic/debian11 memory: 1024 - cpus: 2 + cpus: 1 groups: - k3s_cluster - master @@ -35,7 +35,7 @@ platforms: - name: control3 box: generic/rocky9 memory: 1024 - cpus: 2 + cpus: 1 groups: - k3s_cluster - master @@ -46,7 +46,7 @@ platforms: - name: node1 box: generic/ubuntu2204 memory: 1024 - cpus: 2 + cpus: 1 groups: - k3s_cluster - node @@ -62,7 +62,7 @@ platforms: - name: node2 box: generic/rocky9 memory: 1024 - cpus: 2 + cpus: 1 groups: - k3s_cluster - node diff --git a/molecule/ipv6/molecule.yml b/molecule/ipv6/molecule.yml index cf5b171..4f6e0c5 100644 --- a/molecule/ipv6/molecule.yml +++ b/molecule/ipv6/molecule.yml @@ -7,7 +7,7 @@ platforms: - name: control1 box: generic/ubuntu2204 memory: 1024 - cpus: 2 + cpus: 1 groups: - k3s_cluster - master @@ -23,7 +23,7 @@ platforms: - name: control2 box: generic/ubuntu2204 memory: 1024 - cpus: 2 + cpus: 1 groups: - k3s_cluster - master @@ -39,7 +39,7 @@ platforms: - name: node1 box: generic/ubuntu2204 memory: 1024 - cpus: 2 + cpus: 1 groups: - k3s_cluster - node diff --git a/molecule/single_node/molecule.yml b/molecule/single_node/molecule.yml index 1a7ed84..1c50c00 100644 --- a/molecule/single_node/molecule.yml +++ b/molecule/single_node/molecule.yml @@ -6,8 +6,8 @@ driver: platforms: - name: control1 box: generic/ubuntu2204 - memory: 4096 - cpus: 4 + memory: 1024 + cpus: 1 config_options: # We currently can not use public-key based authentication on Ubuntu 22.04, # see: https://github.com/chef/bento/issues/1405