Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ikanago committed Nov 13, 2023
1 parent f6e630b commit da4f1ce
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 21 deletions.
31 changes: 11 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,18 @@
name: Ansible CI
name: Test Installation

on:
push:
pull_request:

jobs:
build-ubuntu:
runs-on: 'ubuntu-22.04'
steps:
- uses: actions/checkout@v2
- name: Run Ansible Playbook
env:
CI: 1
run: |
ansible-playbook main.yml -b --skip-tags brew
build-macos:
runs-on: 'macos-12'
test:
strategy:
matrix:
os: [ubuntu-22.04, macos-12]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install Ansible
run: |
brew install ansible
- name: Run Ansible Playbook
run: |
ansible-playbook main.yml --skip-tags brew
- uses: actions/checkout@v2

- name: Run Install Script
run: |
curl -fsSL "https://raw.githubusercontent.com/ikanago/dotfiles/${{ github.ref_name }}/install.sh" | bash
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function install_chezmoi() {

ensure_command "curl"
echo "Install chezmoi"
sh -c "$(curl -fsLS get.chezmoi.io)" -- -b $HOME/.local/bin
sh -c "$(curl -fsLS get.chezmoi.io/lb)"
echo "Clone dotfiles repo"
$HOME/.local/bin/chezmoi init https://github.com/ikanago/dotfiles.git
echo "dotfiles are cloned to $dotfiles_dir"
Expand Down

0 comments on commit da4f1ce

Please sign in to comment.