add archlinux to test distro #7
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 Manjaro | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
jobs: | |
dotfiles-test: | |
name: ${{ matrix.container }}-test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
container: ["manjarolinux/base:latest", "archlinux/archlinux"] | |
container: | |
image: ${{ matrix.container }} | |
env: | |
USER: dev | |
HOME: /home/dev | |
CHEZMOI_VERBOSE: 1 | |
steps: | |
- name: Prepare environment | |
run: | | |
sudo pacman -Syu --noconfirm sudo chezmoi git | |
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 |