mirror of
https://github.com/atuinsh/atuin.git
synced 2025-02-17 19:01:22 +01:00
chore: add installer e2e tests (#2110)
* chore: add installer e2e tests * only run if edited or main
This commit is contained in:
parent
b88c42f3f9
commit
279f57b6d7
38
.github/workflows/installer.yml
vendored
Normal file
38
.github/workflows/installer.yml
vendored
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user