mirror of
https://github.com/techno-tim/k3s-ansible.git
synced 2025-12-28 11:42:37 +01:00
fix(ci): move to ubuntu
This commit is contained in:
49
.github/workflows/cache.yml
vendored
49
.github/workflows/cache.yml
vendored
@@ -5,7 +5,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
molecule:
|
molecule:
|
||||||
name: cache
|
name: cache
|
||||||
runs-on: macos-12
|
runs-on: ubuntu-large-runner
|
||||||
env:
|
env:
|
||||||
PYTHON_VERSION: "3.11"
|
PYTHON_VERSION: "3.11"
|
||||||
|
|
||||||
@@ -58,28 +58,35 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
vagrant-boxes
|
vagrant-boxes
|
||||||
|
|
||||||
- name: Configure Homebrew cache
|
- name: install apt packages
|
||||||
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-vagrant.outputs.cache-hit != 'true'
|
|
||||||
run: |
|
run: |
|
||||||
brew update --preinstall
|
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
|
||||||
|
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
|
||||||
|
sudo apt update && sudo apt -y install vagrant virtualbox
|
||||||
|
|
||||||
- name: Install Homebrew dependencies
|
|
||||||
if: | # only run if false since this is just a cache step
|
# - name: Configure Homebrew cache
|
||||||
steps.cache-homebrew.outputs.cache-hit != 'true' || steps.cache-cache-vagrant.outputs.cache-hit != 'true'
|
# uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0
|
||||||
run: |
|
# id: cache-homebrew
|
||||||
env HOMEBREW_NO_AUTO_UPDATE=1 brew bundle --no-upgrade --file ./Brewfile
|
# with:
|
||||||
vagrant --version
|
# path: |
|
||||||
vboxmanage --version
|
# ~/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-vagrant.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-cache-vagrant.outputs.cache-hit != 'true'
|
||||||
|
# run: |
|
||||||
|
# env HOMEBREW_NO_AUTO_UPDATE=1 brew bundle --no-upgrade --file ./Brewfile
|
||||||
|
# vagrant --version
|
||||||
|
# vboxmanage --version
|
||||||
|
|
||||||
- name: Download Vagrant boxes for all scenarios
|
- name: Download Vagrant boxes for all scenarios
|
||||||
# To save some cache space, all scenarios share the same cache key.
|
# To save some cache space, all scenarios share the same cache key.
|
||||||
|
|||||||
4
.github/workflows/lint.yml
vendored
4
.github/workflows/lint.yml
vendored
@@ -5,7 +5,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
pre-commit-ci:
|
pre-commit-ci:
|
||||||
name: Pre-Commit
|
name: Pre-Commit
|
||||||
runs-on: macos-12
|
runs-on: ubuntu-large-runner
|
||||||
env:
|
env:
|
||||||
PYTHON_VERSION: "3.11"
|
PYTHON_VERSION: "3.11"
|
||||||
|
|
||||||
@@ -42,7 +42,7 @@ jobs:
|
|||||||
|
|
||||||
ensure-pinned-actions:
|
ensure-pinned-actions:
|
||||||
name: Ensure SHA Pinned Actions
|
name: Ensure SHA Pinned Actions
|
||||||
runs-on: macos-12
|
runs-on: ubuntu-large-runner
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@e2f20e631ae6d7dd3b768f56a5d2af784dd54791 # v3 2.5.0
|
uses: actions/checkout@e2f20e631ae6d7dd3b768f56a5d2af784dd54791 # v3 2.5.0
|
||||||
|
|||||||
34
.github/workflows/test.yml
vendored
34
.github/workflows/test.yml
vendored
@@ -5,7 +5,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
molecule:
|
molecule:
|
||||||
name: Molecule
|
name: Molecule
|
||||||
runs-on: macos-12
|
runs-on: ubuntu-large-runner
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
scenario:
|
scenario:
|
||||||
@@ -41,22 +41,28 @@ jobs:
|
|||||||
python-version: ${{ env.PYTHON_VERSION }}
|
python-version: ${{ env.PYTHON_VERSION }}
|
||||||
cache: 'pip' # caching pip dependencies
|
cache: 'pip' # caching pip dependencies
|
||||||
|
|
||||||
- name: Restore Homebrew cache
|
# - name: Restore Homebrew cache
|
||||||
uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0
|
# uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0
|
||||||
with:
|
# with:
|
||||||
path: |
|
# path: |
|
||||||
~/Library/Caches/Homebrew
|
# ~/Library/Caches/Homebrew
|
||||||
key: brew-${{ hashFiles('./Brewfile') }}
|
# key: brew-${{ hashFiles('./Brewfile') }}
|
||||||
|
|
||||||
- name: Update Homebrew
|
# - name: Update Homebrew
|
||||||
run: |
|
# run: |
|
||||||
brew update --preinstall
|
# brew update --preinstall
|
||||||
|
|
||||||
- name: Install Homebrew dependencies
|
# - name: Install Homebrew dependencies
|
||||||
|
# run: |
|
||||||
|
# env HOMEBREW_NO_AUTO_UPDATE=1 brew bundle --no-upgrade --file ./Brewfile
|
||||||
|
# vagrant --version
|
||||||
|
# vboxmanage --version
|
||||||
|
|
||||||
|
- name: install apt packages
|
||||||
run: |
|
run: |
|
||||||
env HOMEBREW_NO_AUTO_UPDATE=1 brew bundle --no-upgrade --file ./Brewfile
|
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
|
||||||
vagrant --version
|
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
|
||||||
vboxmanage --version
|
sudo apt update && sudo apt -y install vagrant virtualbox
|
||||||
|
|
||||||
- name: Restore vagrant Boxes cache
|
- name: Restore vagrant Boxes cache
|
||||||
uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0
|
uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0
|
||||||
|
|||||||
Reference in New Issue
Block a user