-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.09 KB
/
test_install.yml
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
41
name: test_install
on:
push: {}
schedule:
- cron: "0 0 * * 0"
jobs:
test_install:
runs-on: ubuntu-latest
container:
image: ubuntu:23.04
env:
DEBIAN_FRONTEND: noninteractive
steps:
- name: debug info
run: |
cat /etc/lsb-release
- name: update and install pre-reqs
run: |
apt-get update
apt-get -y install git ansible sudo bzip2
- name: setup user
run: |
adduser --disabled-password --quiet --gecos '' tester
su - tester -c id
su - tester -c "mkdir -p /home/tester/Downloads"
- name: checkout
uses: actions/checkout@v3
- name: setup
run: |
cd $GITHUB_WORKSPACE
cp ${GITHUB_WORKSPACE}/test_vars.yml ${GITHUB_WORKSPACE}/.vars.yml
ansible-playbook -e in_container=true workstation.yml
- name: check
run: |
su - tester -c "git config --list"
su - tester -c "python --version"
su - tester -c "clamscan --version"
su - tester -c "gitdefault"
shell: bash