Skip to content

Commit

Permalink
Ubuntu test: Test both default install and all packages but DaVinci
Browse files Browse the repository at this point in the history
  • Loading branch information
leinardi committed Oct 24, 2024
1 parent 1a638b4 commit ad77536
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 3 deletions.
40 changes: 37 additions & 3 deletions .github/workflows/ubuntu-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ concurrency:
cancel-in-progress: true

jobs:
run-on-ubuntu-2404:
name: Run on Ubuntu 24.04
test-default-packages:
name: Test default set of packages
runs-on: ubuntu-24.04
timeout-minutes: 120
env:
Expand All @@ -37,4 +37,38 @@ jobs:
sudo apt install git make
git clone https://github.com/leinardi/JDInstaller.git
cd JDInstaller
make install OTHER_PARAMS=-vvv
git checkout $GITHUB_SHA
make install
test-all-packages-besides-davinci:
name: Test all packages besides DaVinci Resolve
runs-on: ubuntu-24.04
timeout-minutes: 120
env:
TERM: dumb

steps:
- name: Change APT mirror to archive.ubuntu.com to avoid 404 Not Found error
run: |
sudo sed -i 's|http://azure.archive.ubuntu.com/ubuntu|http://archive.ubuntu.com/ubuntu|g' /etc/apt/sources.list.d/ubuntu.sources
sudo apt-get update
- name: Setup Ubuntu desktop minimal
run: |
sudo apt-get install -y ubuntu-desktop-minimal
- name: Checkout
uses: actions/checkout@v4

- name: Install ansible from PPA
run: |
sudo apt-add-repository --yes --update ppa:ansible/ansible
sudo apt-get install -y ansible
ansible-galaxy collection install -r requirements.yml
- name: Enable all disabled packages except DaVinci Resolve
run: |
sed -i '/davinci_resolve_enabled: false/!s/_enabled: false/_enabled: true/' group_vars/all.yml
- name: Run playbook
run: ansible-playbook ubuntu-setup.yml -vvv
1 change: 1 addition & 0 deletions roles/ufw/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
state: present

- name: Configure UFW defaults
become: true
community.general.ufw:
direction: "{{ item.direction }}"
policy: "{{ item.policy }}"
Expand Down

0 comments on commit ad77536

Please sign in to comment.