File tree 3 files changed +56
-0
lines changed
3 files changed +56
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM archlinux:base
2
+
3
+ RUN pacman -Syu --noconfirm \
4
+ && pacman -S --noconfirm fish yadm
5
+
6
+ RUN useradd --create-home --shell /bin/bash primeapple
7
+
8
+ WORKDIR /home/primeapple
9
+ COPY yadm-test.sh yadm-test.sh
10
+ RUN chmod +x yadm-test.sh && chown primeapple:primeapple yadm-test.sh
11
+
12
+ USER primeapple
13
+ CMD ./yadm-test.sh
Original file line number Diff line number Diff line change
1
+ name : Yadm Test
2
+
3
+ on :
4
+ push :
5
+
6
+ jobs :
7
+ yadm-test :
8
+ runs-on : ubuntu-latest
9
+
10
+ steps :
11
+ - name : Checkout code
12
+ uses : actions/checkout@v3
13
+
14
+ - name : Build Docker image
15
+ run : docker build -f .github/Dockerfile -t arch-yadm .github/
16
+
17
+ - name : Run yadm-test script
18
+ run : docker run --rm arch-yadm
Original file line number Diff line number Diff line change
1
+ echo " TEST: Cloning the dotfiles"
2
+ yadm clone --no-bootstrap https://github.com/primeapple/dotfiles
3
+
4
+ ls -la
5
+
6
+ echo " TEST: Checking if required directories and files exist"
7
+ directories=(" .config/nvim" " .config/fish" )
8
+ files=(" .profile" " .vimrc" )
9
+
10
+ for dir in " ${directories[@]} " ; do
11
+ if [ ! -d " $dir " ]; then
12
+ echo " Error: Directory $dir does not exist."
13
+ exit 1
14
+ fi
15
+ done
16
+
17
+ for file in " ${files[@]} " ; do
18
+ if [ ! -f " $file " ]; then
19
+ echo " Error: File $file does not exist."
20
+ exit 1
21
+ fi
22
+ done
23
+
24
+ echo " TEST: Executing bootstrap"
25
+ yadm bootstrap
You can’t perform that action at this time.
0 commit comments