-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: Removed redundant tasks, added integration test
- Loading branch information
1 parent
ab0ff13
commit 165a878
Showing
20 changed files
with
198 additions
and
3,476 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
--- | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
lint: | ||
name: ansible and yaml lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 3. | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.x" | ||
|
||
- name: Install test dependencies. | ||
run: pip3 install yamllint ansible-lint | ||
|
||
- name: Lint code. | ||
run: | | ||
yamllint . | ||
ansible-lint -x 403 | ||
tests: | ||
name: Integration test | ||
runs-on: macos-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 3. | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.x" | ||
|
||
- name: Uninstall GitHub Actions' built-in Homebrew. | ||
run: tests/uninstall-homebrew.sh | ||
|
||
- name: Install test dependencies. | ||
run: | | ||
sudo pip3 install --upgrade pip | ||
sudo pip3 install ansible | ||
- name: Set up test environment | ||
run: | | ||
cp tests/ansible.cfg ./ansible.cfg | ||
cp tests/inventory ./inventory | ||
cp tests/test_config.yml ./config.yml | ||
ansible-galaxy install -r requirements.yml | ||
- name: Test the playbook's syntax | ||
run: ansible-playbook main.yml --syntax-check | ||
|
||
- name: Test the playbook. | ||
run: ansible-playbook main.yml |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,88 +1,31 @@ | ||
--- | ||
downloads: ~/.ansible-downloads/ | ||
|
||
configure_dotfiles: true | ||
configure_gpg: false | ||
configure_osx: false | ||
configure_terminal: true | ||
configure_tmux: false | ||
install_oh_my_zsh: true | ||
install_vim_plug: false | ||
configure_osx: true | ||
configure_zsh: true | ||
zsh_plugins: | ||
- zsh-syntax-highlighting | ||
- zsh-history-substring-search | ||
|
||
configure_tmux: true | ||
tmux_dir: $HOME/.tmux | ||
|
||
create_directories: true | ||
directories: | ||
- $HOME/Documents/repositories | ||
|
||
install_extra_packages: true | ||
pip_executable: pip | ||
pip_packages: | ||
- name: awscli | ||
- name: pip | ||
state: latest | ||
|
||
configure_dock: true | ||
dockitems_remove: | ||
- TV | ||
- Podcasts | ||
|
||
dockitems_persist: | ||
- name: Firefox | ||
path: /Applications/Firefox.app/ | ||
pos: 1 | ||
- name: Visual Studio Code | ||
path: /Applications/Visual Studio Code.app/ | ||
pos: 2 | ||
|
||
configure_sudoers: true | ||
sudoers_custom_config: | | ||
# Allow users in admin group to use sudo with no password. | ||
%admin ALL=(ALL) NOPASSWD: ALL | ||
npm_packages: | ||
- name: neovim | ||
state: latest | ||
|
||
install_fonts: true | ||
installed_nerdfonts: | ||
- Meslo | ||
|
||
dotfiles_repo: https://github.com/AlexNabokikh/dotfiles | ||
dotfiles_repo_accept_hostkey: true | ||
dotfiles_repo_local_destination: ~/Documents/repositories/dotfiles | ||
dotfiles_files: | ||
- .gitconfig | ||
- .inputrc | ||
- .osx | ||
- .p10k.zsh | ||
- .tmux.conf | ||
- .vimrc | ||
- .zshrc | ||
|
||
homebrew_installed_packages: | ||
- fzf | ||
- git | ||
- gpg | ||
- helm | ||
- htop | ||
- jq | ||
- tfenv | ||
- tflint | ||
- tmux | ||
- vim | ||
|
||
homebrew_taps: | ||
- homebrew/bundle | ||
- homebrew/cask | ||
|
||
homebrew_cask_appdir: /Applications | ||
homebrew_cask_apps: | ||
- appcleaner | ||
- docker | ||
- dozer | ||
- firefox | ||
- visual-studio-code | ||
|
||
mas_installed_apps: | ||
- {id: 937984704, name: Amphetamine} | ||
mas_email: "" | ||
mas_password: "" | ||
|
||
osx_script: ~/.osx --no-restart | ||
|
||
# Glob pattern to ansible task files to run after all other tasks are finished. | ||
post_provision_tasks: [] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.