prep 25-10 and switch to nordvpn after expressvpn broke the build again #570
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: test_install | |
| on: | |
| push: {} | |
| workflow_dispatch: {} | |
| schedule: | |
| - cron: "0 0 * * 0" | |
| jobs: | |
| test_install: | |
| strategy: | |
| matrix: | |
| image: | |
| - ubuntu:latest | |
| - ubuntu:rolling | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ${{ matrix.image }} | |
| env: | |
| DEBIAN_FRONTEND: noninteractive | |
| steps: | |
| - name: debug info | |
| run: | | |
| cat /etc/lsb-release | |
| - name: update and install pre-reqs | |
| # snapd depends on systemd and can't easily be run in a container | |
| # but snaps have never caused any problems so not concerned about lack of smoke testing | |
| 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@v4 | |
| - name: setup | |
| run: | | |
| cd $GITHUB_WORKSPACE | |
| cp ${GITHUB_WORKSPACE}/.github/test_vars.yml ${GITHUB_WORKSPACE}/.vars.yml | |
| ansible-playbook -i inventory workstation.yml | |
| - name: check | |
| shell: bash -l {0} | |
| run: | | |
| su - tester -c "alias" | |
| su - tester -c "git config --list" | |
| su - tester -c "python --version" | |
| su - tester -c "! pip install jsonschema # should not work because no venv" | |
| su - tester -c "clamscan --version" | |
| # su - tester -c "! systemctl is-enabled cups" | |
| # su - tester -c "sudo systemctl start cups" | |
| # su - tester -c "sudo systemctl stop cups" | |
| # su - tester -c "! sudo systemctl enable cups" ## should not work as only able to start and stop |