-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.1 KB
/
Copy pathinstall.yml
File metadata and controls
40 lines (38 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: test
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
defaults:
run:
shell: bash
jobs:
run-tests:
runs-on: ubuntu-latest
container:
image: debian:trixie # or bullseye, sid, etc.
options: --privileged
env:
TERM: xterm
shell: bash
USER: a_person
LOGNAME: a_person
DEBIAN_FRONTEND: noninteractive
steps:
- name: Setup architecture and packages
run: |
dpkg --add-architecture i386 && apt-get update
apt-get -y install python3 wget git stow sudo curl
- name: Setup Test User
run: |
useradd -rm -d /home/$USER -s /bin/bash -g root -G sudo -u 1001 $USER
sudo sed -i "s/%sudo\tALL=(ALL:ALL) ALL/%sudo\tALL=(ALL) NOPASSWD:ALL/g" /etc/sudoers
chown -R $USER /tmp
chmod -R 777 /tmp
- name: Run setup script
run: |
export SUDO_USER=$USER
export DEBIAN_FRONTEND=noninteractive
export GITHUB_ACTIONS=true
bash -c "$(curl -fsSL https://raw.githubusercontent.com/aKqir24/.files/refs/heads/master/install.sh)"