From 6887e5ad74d5c8a311fb4b1cc5e126aead27020f Mon Sep 17 00:00:00 2001 From: AntoinePrv Date: Mon, 9 Oct 2023 12:00:46 +0200 Subject: [PATCH] Add script test --- .github/workflows/test..yml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/test..yml diff --git a/.github/workflows/test..yml b/.github/workflows/test..yml new file mode 100644 index 0000000..b588258 --- /dev/null +++ b/.github/workflows/test..yml @@ -0,0 +1,38 @@ +name: Test install scripts + +on: + push: + branches: + - main + pull_request: + branches: + - main + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test_install: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + include: + - {os: ubuntu-latest, shell: bash, shell-source-param: -i} + - {os: macos-latest, shell: zsh, shell-source-param: -i} + - {os: macos-latest, shell: bash, shell-source-param: -l} + - {os: windows-latest, shell: bash, shell-source-param: -l} + steps: + - name: Install Micromamba (${{ matrix.os }}, ${{ matrix.shell }}) + # Need to force the shell to get the default *calling* shell right + run: | + ${{ matrix.shell }} ./install.sh + - name: Test Micromamba + # use either -l or -i to source .bash_profile or .bashrc/.zshrc + run: | + ${{ matrix.shell }} ${{ matrix.shell-source-param }} -ec micromamba + - name: Test Micromamba + # use either -l or -i to source .bash_profile or .bashrc/.zshrc + run: | + ${{ matrix.shell }} ${{ matrix.shell-source-param }} -ec micromamba