delete ubuntu 24 because I already have latest ubuntu #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Dotfiles on Different OS | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
concurrency: | ||
group: dotfiles-tests-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
dotfiles-test: | ||
name: ${{ matrix.container }}-test | ||
runs-on: ubuntu-latest | ||
continue-on-errors: true | ||
Check failure on line 17 in .github/workflows/test-distros.yaml
|
||
strategy: | ||
matrix: | ||
container: ["manjarolinux/base:latest", "archlinux:latest", "ubuntu:latest", "ubuntu:20.04", "ubuntu:22.04"] | ||
container: | ||
image: ${{ matrix.container }} | ||
env: | ||
USER: dev | ||
HOME: /home/dev | ||
CHEZMOI_VERBOSE: 1 | ||
steps: | ||
- name: Prepare environment | ||
run: | | ||
if command -v apt-get >/dev/null; then | ||
sudo apt-get update | ||
sudo apt-get install -y sudo git curl | ||
if ! command -v chezmoi >/dev/null; then | ||
sh -c "$(curl -fsLS get.chezmoi.io)" -- -b /usr/local/bin | ||
fi | ||
elif command -v pacman >/dev/null; then | ||
if ! command -v sudo > /dev/null; then | ||
pacman -Syu --noconfirm sudo | ||
fi | ||
sudo pacman -Syu --noconfirm git chezmoi | ||
else | ||
exit 1 | ||
fi | ||
sudo useradd -m dev || true | ||
echo "dev ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/dev | ||
- name: chezmoi init dotfiles | ||
run: | | ||
sudo -u dev chezmoi init --apply collieiscute -v |