Skip to content

Commit f8773d3

Browse files
committed
Try Github actions for bootstrap test
1 parent 60053ec commit f8773d3

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

.github/Dockerfile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM archlinux:base
2+
3+
RUN pacman -Syu --noconfirm \
4+
&& pacman -S --noconfirm fish yadm
5+
6+
WORKDIR /app
7+
COPY bootstrap.sh bootstrap.sh
8+
RUN chmod +x bootstrap.sh
9+
10+
CMD bootstrap.sh

.github/bootstrap.sh

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
echo "Bootstrap test..."
2+
exit 0

.github/workflows/bootstrap.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Bootstrap Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v3
15+
16+
- name: Build Docker image
17+
run: docker build -f .github/Dockerfile -t arch-bootstrap .github/
18+
19+
- name: Run bootstrap script
20+
run: docker run --rm arch-bootstrap

0 commit comments

Comments
 (0)