Skip to content

Commit

Permalink
Refactor codebase checking
Browse files Browse the repository at this point in the history
  • Loading branch information
pavetok committed Sep 20, 2023
1 parent c47dce0 commit 879137f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
10 changes: 7 additions & 3 deletions .dx/inventory/aliases.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
---
all:
hosts:
codebase:
lib:
app:
schema:
test:
dx:
vars:
ansible_connection: local
codebase:
hosts:
java:
ansible:
github:
vars:
ansible_connection: local
stack:
Expand Down
19 changes: 15 additions & 4 deletions .dx/sources.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
- name: Sources
hosts: codebase
- name: Codebase
hosts: java
run_once: true
tasks:
- name: Analyze
Expand All @@ -10,15 +10,21 @@
--no-snapshot-updates
--batch-mode
{% if focus == 'solution' %}
--projects libs,apps
--projects apps/foo
{% elif focus == 'pipeline' %}
--projects tools,tests
--projects tests/e2e
{% endif %}
--also-make
enforcer:enforce
spotless:check
chdir: "{{ playbook_dir }}/.."
strip_empty_ends: false
changed_when: false

- name: Codebase
hosts: ansible
run_once: true
tasks:
- name: Analyze
ansible.builtin.command:
# list all top level playbooks
Expand All @@ -29,6 +35,11 @@
strip_empty_ends: false
changed_when: false
when: focus != 'solution'

- name: Codebase
hosts: github
run_once: true
tasks:
- name: Analyze
ansible.builtin.command:
cmd: yamllint ../.github
Expand Down

0 comments on commit 879137f

Please sign in to comment.