From 40b334cccb719130a5ab1c004733fa53448e91b6 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Mon, 10 Jun 2024 16:32:42 +0100 Subject: [PATCH] chore: add installer e2e tests --- .github/workflows/installer.yml | 38 +++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/installer.yml diff --git a/.github/workflows/installer.yml b/.github/workflows/installer.yml new file mode 100644 index 00000000000..279f54de85d --- /dev/null +++ b/.github/workflows/installer.yml @@ -0,0 +1,38 @@ +name: Install + +on: + push: + branches: [main] + pull_request: + branches: [main] + +env: + CARGO_TERM_COLOR: always + +jobs: + install: + strategy: + matrix: + os: [ubuntu-latest, macos-14] + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v3 + + - name: Install zsh for ubuntu + if: matrix.os == 'ubuntu-latest' + run: | + apt install zsh + + - name: Test install script on bash + run: | + /bin/bash -c "$(curl --proto '=https' --tlsv1.2 -sSf https://setup.atuin.sh)" + [ -d "$HOME/.atuin" ] && source $HOME/.atuin/bin/env + atuin --help + + - name: Test install script on zsh + shell: zsh {0} + run: | + /bin/bash -c "$(curl --proto '=https' --tlsv1.2 -sSf https://setup.atuin.sh)" + [ -d "$HOME/.atuin" ] && source $HOME/.atuin/bin/env + atuin --help