Skip to content

Commit

Permalink
direnv
Browse files Browse the repository at this point in the history
  • Loading branch information
shellshock1953 committed Oct 10, 2023
1 parent d15827b commit 3313da8
Show file tree
Hide file tree
Showing 6 changed files with 81 additions and 6 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/direnv.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Molecule
on:
push:
paths:
- 'defaults/main/direnv.yml'
- 'tasks/**'
- 'molecule/direnv/**'
pull_request:
branches: [master]
paths:
- 'defaults/main/direnv.yml'
- 'tasks/**'
- 'molecule/direnv/**'
jobs:
tests:
runs-on: ubuntu-latest
name: component:direnv
steps:
- name: Checkout
uses: actions/checkout@v2
with:
path: ${{ github.repository }}
- name: Molecule
uses: gofrolist/molecule-action@v2
with:
molecule_command: test
molecule_args: -d docker -s direnv
molecule_working_dir: dnullproject/components
env:
ANSIBLE_FORCE_COLOR: '1'
7 changes: 7 additions & 0 deletions defaults/main/direnv.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
# direnv
role_component:
direnv:
install:
brew:
- direnv
11 changes: 5 additions & 6 deletions defaults/main/zsh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@ role_component:
- PATH="$PATH:$HOME/.stew/bin"
- PATH="$PATH:$HOME/install/flutter/bin"
# - PATH="$PATH:$HOME/ENV/${VENV}/bin"
- PATH="$PATH:$HOME/dNull/ues.lib"
- PATH="$PATH:$HOME/dNull/ues.utils"
- PATH="$PATH:$HOME/dNull/dnull"
# - PATH="$PATH:$HOME/dnull/ues.lib"
# - PATH="$PATH:$HOME/dnull/ues.utils"
# - PATH="$PATH:$HOME/dnull/dnull"
- PATH="$PATH:$HOME/.pulumi/bin"
- PATH="$PATH:$HOME/.pub-cache/bin"
- SHELL=/bin/zsh
- SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock
- VAGRANT_HOME='~/.vagrant.d'
- UES_LIB=~/dNull/ues.lib
# - UES_LIB=~/dnull/ues.lib
- KUBECONFIG="${HOME}/.kube/config"
- HOSTALIASES=~/.hosts
- RPROMPT='%{$fg[blue]%}($ZSH_KUBECTL_PROMPT)%{$reset_color%}'
Expand Down Expand Up @@ -128,8 +128,7 @@ role_component:
- maciar='TERM=xterm-color ssh maciar'
- gitroot='cd $(git rev-parse --show-toplevel)'
- mux='tmuxinator'
- ii='/bin/bash ~/dnull/dnull/utils/components_dmenu.sh'
sources: ['~dNull/secrets/secrets.sh || echo -e "[.!]\tNo secrets found!"']
sources: []
vault: []
evals:
- direnv hook zsh
Expand Down
13 changes: 13 additions & 0 deletions molecule/direnv/converge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
- name: Converge
hosts: all
gather_facts: true
remote_user: root
tasks:
# TODO: resolve deps
- name: Testing -- dummy
include_role:
name: components
vars:
role_component:
components: [dummy]
16 changes: 16 additions & 0 deletions molecule/direnv/molecule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
dependency:
name: galaxy
driver:
name: docker
platforms:
- name: ubuntu_2004
image: mpaivabarbosa/molecule-systemd-ubuntu:20.04
pre_build_image: true
provisioner:
name: ansible
config_options:
defaults:
hash_behaviour: merge
verifier:
name: ansible
9 changes: 9 additions & 0 deletions molecule/direnv/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
# This is an example playbook to execute Ansible tests.
- name: Verify
hosts: all
gather_facts: false
tasks:
- name: Example assertion
ansible.builtin.assert:
that: true

0 comments on commit 3313da8

Please sign in to comment.