Skip to content

🚧 install script tests #329

🚧 install script tests

🚧 install script tests #329

Workflow file for this run

name: Self test
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: ["main"]
paths-ignore:
- "docs/**"
pull_request:
paths-ignore:
- "docs/**"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Default to bash
defaults:
run:
shell: bash -o errexit -o nounset -o pipefail -x {0}
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
self-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
submodules: recursive
# Runs our tests
- name: Run valet self test
env:
VALET_CONFIG_ENABLE_COLORS: true
VALET_CONFIG_DISABLE_PROGRESS: true
run: |
docker pull noyacode/valet-tests-slimdeb:latest
bash --version
chmod +x valet
./valet self test -c
# Runs tests with bash 5
- name: Run valet self test on bash5.0
run: |
chmod +x valet
docker run --rm \
-v $PWD:/app \
-w /app \
-e VALET_CONFIG_ENABLE_COLORS=true \
-e VALET_CONFIG_DISABLE_PROGRESS=true \
--entrypoint /usr/local/bin/bash-5.0 \
noyacode/valet-tests-slimdeb:latest \
bash --version; ./valet self test -c