Skip to content

Workflow Refactor: Make sure dotfiles-dotstow-post-setup exists #113

Workflow Refactor: Make sure dotfiles-dotstow-post-setup exists

Workflow Refactor: Make sure dotfiles-dotstow-post-setup exists #113

Workflow file for this run

name: CI - Arch Linux
on:
push:
branches: ["master", "develop", "feature/*"]
pull_request:
branches: ["feature/*"]
workflow_dispatch:
jobs:
setup:
runs-on: ubuntu-latest
container: archlinux:latest
env:
SKIP_SETTING_USER: true
SKIP_INSTALL_PROGLANG: false
SKIP_POST_SETUP: true
steps:
- uses: actions/checkout@v3
- name: Initialize Pacman
run: |
cd arch && ./init.sh
- name: Getting Started
run: |
./start.sh
- name: Simulate Setup
run: |
mkdir -p ~/.ssh
pacman -Syyu --noconfirm --noprogressbar
pacman -S --noconfirm --noprogressbar sudo
cd arch && ./setup.sh
- name: Post-Setup
run: |
sh linux/systems/bin/dotfiles-dotstow-post-setup
- name: Installing dotstow
run: |
sh linux/systems/bin/dotfiles-dotstow
- name: Simulate Stowing
run: |
mkdir -p /home/johnc/.dotfiles
mkdir -p /home/johnc/.local/state/dotstow
ls -lah $PWD
cp -r $PWD/* /home/johnc/.dotfiles/
sudo -u johnc bash -c 'mkdir -p $HOME/bin'
sudo -u johnc bash -c 'cp $HOME/.dotfiles/linux/systems/bin/dotfiles-cleanup $HOME/bin/'
sudo -u johnc bash -c 'cp $HOME/.dotfiles/linux/systems/bin/dotfiles-ssh $HOME/bin/'
sudo -u johnc bash -c 'ls -lah $HOME/.dotfiles/'
sudo -u johnc bash -c 'cd $HOME/.dotfiles/arch && ./stowme.sh'