Skip to content

Commit 1836b8b

Browse files
committed
feat: Introduce bashunit test suite
This introduces the bashunit test suite as requested by @jrfnl. I opted to include the binary in the repository to make local testing easier & to lock the dependency on the project side instead of relying on external scripts. This tests both a simple happy and a simple unhappy flow, as well as a test case for PHPCSStandards#1112.
1 parent 4ed90f8 commit 1836b8b

File tree

6 files changed

+3537
-0
lines changed

6 files changed

+3537
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# example: .github/workflows/bashunit-tests.yml
2+
name: BashUnit Tests
3+
4+
on:
5+
# Run on all pushes and on all pull requests.
6+
# Prevent the build from running when there are only irrelevant changes.
7+
push:
8+
paths-ignore:
9+
- '**.md'
10+
- '**.xml'
11+
pull_request:
12+
# Allow manually triggering the workflow.
13+
workflow_dispatch:
14+
15+
# Cancels all previous workflow runs for the same branch that have not yet completed.
16+
concurrency:
17+
# The concurrency group contains the workflow name and the branch name.
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
bashunit:
23+
name: "Run tests"
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
29+
- name: "Install patch"
30+
run: "sudo apt-get install -y patch"
31+
32+
- name: "Run bashunit tests"
33+
run: "./scripts/bashunit -p tests/EndToEnd"

0 commit comments

Comments
 (0)