From da4f1ce586bd539245f2b78daacaedc804132318 Mon Sep 17 00:00:00 2001 From: ikanago Date: Mon, 13 Nov 2023 21:33:35 +0900 Subject: [PATCH] CI --- .github/workflows/ci.yml | 31 +++++++++++-------------------- install.sh | 2 +- 2 files changed, 12 insertions(+), 21 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f2e1bb3..25b1522 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/install.sh b/install.sh index 5df151e..6c36ba5 100755 --- a/install.sh +++ b/install.sh @@ -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"