Skip to content

chore: improve the test test_mock_ps_when_executing_a_script #1295

chore: improve the test test_mock_ps_when_executing_a_script

chore: improve the test test_mock_ps_when_executing_a_script #1295

Workflow file for this run

name: Tests
on:
pull_request:
push:
branches:
- main
jobs:
ubuntu-macos:
name: "On ${{ matrix.os }}"
timeout-minutes: 10
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Run Tests
run: make test
windows:
name: "On windows (${{ matrix.test_chunk }})"
timeout-minutes: 10
runs-on: windows-latest
strategy:
matrix:
test_chunk: [acceptance, functional, unit]
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Run tests
shell: bash
run: |
./bashunit tests/${{ matrix.test_chunk }}/*_test.sh
alpine:
name: "On alpine-latest"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Run Tests
run: |
docker run --rm -v "$(pwd)":/project alpine:latest /bin/sh -c " \
apk update && \
apk add --no-cache bash make git && \
adduser -D builder && \
chown -R builder /project && \
su - builder -c 'cd /project; make test';"
simple-output:
name: "Simple output"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Run Tests
run: |
./bashunit --simple tests/
simple-output-parallel:
name: "Simple output in parallel"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Run Tests
run: |
./bashunit --parallel --simple tests/
extended-output-parallel:
name: "Extended output in parallel"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Run Tests
run: |
./bashunit --parallel tests/