aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@elliehuxtable.com>2024-06-10 17:01:00 +0100
committerGitHub <noreply@github.com>2024-06-10 17:01:00 +0100
commit279f57b6d704d763128ec13567a972307ecf1332 (patch)
tree69cd61c05821bdc5b275e88106b5b35f7fbd2ea4 /.github
parentfeat: use cargo-dist installer from our install script (#2108) (diff)
downloadatuin-279f57b6d704d763128ec13567a972307ecf1332.zip
chore: add installer e2e tests (#2110)
* chore: add installer e2e tests * only run if edited or main
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/installer.yml38
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/installer.yml b/.github/workflows/installer.yml
new file mode 100644
index 00000000..07911d07
--- /dev/null
+++ b/.github/workflows/installer.yml
@@ -0,0 +1,38 @@
+name: Install
+
+on:
+ push:
+ branches: [main]
+ pull_request:
+ paths: .github/workflows/installer.yml
+
+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: |
+ sudo 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