ci-test/ci/validate.yaml
Timothée Ravier 6b449c657f Zuul: Unify all jobs to save on CI costs
We need a VM for both the compose-dry-run and the compose-base tests
thus to avoid spawning two VMs in Zuul, let's keep everything in a
single job to save money.
2024-02-29 16:28:33 +01:00

25 lines
769 B
YAML

- hosts: all
tasks:
- name: Install dependencies
package:
name:
- 'jq'
- 'just'
- 'ostree'
- 'python3-pyyaml'
- 'rpm-ostree'
- 'selinux-policy-targeted'
state: present
become: yes
- name: Validate manifests and scripts syntax
ansible.builtin.command:
chdir: "{{ zuul.project.src_dir }}"
cmd: just validate
- name: Perform dependency resolution for all variants
ansible.builtin.command:
chdir: "{{ zuul.project.src_dir }}"
cmd: just compose-dry-run
- name: Compose the base variant
ansible.builtin.command:
chdir: "{{ zuul.project.src_dir }}"
cmd: just compose-legacy base