File tree Expand file tree Collapse file tree 1 file changed +62
-0
lines changed Expand file tree Collapse file tree 1 file changed +62
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Tests with Bash 3.0
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - main
8+
9+ jobs :
10+ bash3 :
11+ name : " Bash 3.0 Compatibility Tests"
12+ runs-on : ubuntu-latest
13+ timeout-minutes : 15
14+ steps :
15+ - name : Checkout
16+ uses : actions/checkout@v4
17+ with :
18+ fetch-depth : 1
19+
20+ - name : Install Bash 3.0
21+ run : |
22+ # Update package lists
23+ sudo apt-get update
24+
25+ # Install dependencies for building bash 3.0
26+ sudo apt-get install -y \
27+ build-essential \
28+ curl \
29+ git \
30+ make
31+
32+ # Download and build bash 3.0.22
33+ cd /tmp
34+ curl -L https://ftp.gnu.org/gnu/bash/bash-3.0.22.tar.gz -o bash-3.0.22.tar.gz
35+ tar xzf bash-3.0.22.tar.gz
36+ cd bash-3.0.22
37+
38+ # Configure and build
39+ ./configure --prefix=/opt/bash-3.0
40+ make
41+ sudo make install
42+
43+ # Create symlink for easy access
44+ sudo ln -sf /opt/bash-3.0/bin/bash /usr/local/bin/bash3
45+
46+ # Verify installation
47+ /usr/local/bin/bash3 --version
48+
49+ - name : Run Tests with Bash 3.0
50+ run : |
51+ # Use bash 3.0 explicitly
52+ /usr/local/bin/bash3 ./bashunit tests/unit/ -q
53+ env :
54+ BASH : /usr/local/bin/bash3
55+
56+ - name : Run tests with different output modes (Bash 3.0)
57+ run : |
58+ # Test with simple output
59+ /usr/local/bin/bash3 ./bashunit --simple tests/unit/ -q
60+
61+ # Test with parallel execution
62+ /usr/local/bin/bash3 ./bashunit --parallel tests/unit/ -q
You can’t perform that action at this time.
0 commit comments