Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/tests-bash-3.0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,20 @@ name: Bash 3.0 Compatibility

on:
pull_request:
paths-ignore:
- 'docs/**'
- 'adrs/**'
- '**/*.md'
- '.github/ISSUE_TEMPLATE/**'
- '.github/PULL_REQUEST_TEMPLATE.md'
push:
branches:
- main

concurrency:
group: bash3-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
build-image:
name: "Build Bash 3.0 Image"
Expand Down
46 changes: 41 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,20 @@ name: Tests

on:
pull_request:
paths-ignore:
- 'docs/**'
- 'adrs/**'
- '**/*.md'
- '.github/ISSUE_TEMPLATE/**'
- '.github/PULL_REQUEST_TEMPLATE.md'
push:
branches:
- main

concurrency:
group: tests-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
ubuntu:
name: "Ubuntu - latest"
Expand Down Expand Up @@ -88,10 +98,6 @@ jobs:
strategy:
matrix:
include:
- name: "acceptance a-l"
test_path: "tests/acceptance/bashunit_[a-l]*_test.sh"
- name: "acceptance m-z"
test_path: "tests/acceptance/bashunit_[m-z]*_test.sh tests/acceptance/[i-p]*_test.sh"
- name: functional
test_path: "tests/functional/*_test.sh"
- name: "unit a-b"
Expand All @@ -118,7 +124,37 @@ jobs:
- name: Run tests
shell: bash
run: |
./bashunit --parallel ${{ matrix.test_path }}
./bashunit --parallel --jobs 4 ${{ matrix.test_path }}

windows-acceptance:
name: "On windows (${{ matrix.name }})"
if: github.event_name == 'push'
timeout-minutes: 10
runs-on: windows-latest
strategy:
matrix:
include:
- name: "acceptance a-e"
test_path: "tests/acceptance/bashunit_[a-e]*_test.sh"
- name: "acceptance f-l"
test_path: "tests/acceptance/bashunit_[f-l]*_test.sh"
- name: "acceptance m-z"
test_path: "tests/acceptance/bashunit_[m-z]*_test.sh tests/acceptance/[i-p]*_test.sh"
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Setup Config
shell: bash
run: cp .env.example .env

- name: Run tests
shell: bash
run: |
./bashunit --parallel --jobs 4 ${{ matrix.test_path }}

alpine:
name: "On alpine-latest"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ dev.log
.tasks/
.claude/settings.local.json
.claude/plans/
.claude/scheduled_tasks.lock
Loading