1414
1515jobs :
1616 test_sanity :
17+ name : Sanity Tests
1718 runs-on : ubuntu-latest
1819 steps :
1920 - uses : actions/checkout@v4
2021 - name : Install docker-compose
2122 run : sudo apt-get update && sudo apt-get install -y docker-compose
2223 - name : Build the Docker images
23- run : docker compose -f docker-compose.test.yml build
24+ run : docker compose -f docker-compose.test-mysql .yml build
2425 - name : Run sanity tests
25- run : docker compose -f docker-compose.test.yml run --no-deps bugzilla6.test test_sanity t/*.t extensions/*/t/*.t
26+ run : docker compose -f docker-compose.test-mysql .yml run --no-deps bugzilla6.test test_sanity t/*.t extensions/*/t/*.t
2627
2728# test_webservices:
2829# runs-on: ubuntu-latest
@@ -31,22 +32,24 @@ jobs:
3132# - name: Install docker-compose
3233# run: sudo apt-get update && sudo apt-get install -y docker-compose
3334# - name: Build the Docker images
34- # run: docker compose -f docker-compose.test.yml build
35+ # run: docker compose -f docker-compose.test-mysql .yml build
3536# - name: Run webservice tests
36- # run: docker compose -f docker-compose.test.yml run bugzilla6.test test_webservices
37+ # run: docker compose -f docker-compose.test-mysql .yml run bugzilla6.test test_webservices
3738
3839 test_bugzilla6_mysql :
40+ name : Interactive Tests with MySQL
3941 runs-on : ubuntu-latest
4042 steps :
4143 - uses : actions/checkout@v4
4244 - name : Install docker-compose
4345 run : sudo apt-get update && sudo apt-get install -y docker-compose
4446 - name : Build the Docker images
45- run : docker compose -f docker-compose.test.yml build
47+ run : docker compose -f docker-compose.test-mysql .yml build
4648 - name : Run bmo specific tests
47- run : docker compose -f docker-compose.test.yml run -e CI=1 bugzilla6.test test_bmo -q -f t/bmo/*.t
49+ run : docker compose -f docker-compose.test-mysql .yml run -e CI=1 bugzilla6.test test_bmo -q -f t/bmo/*.t
4850
4951 test_bugzilla6_mariadb :
52+ name : Interactive Tests with MariaDB
5053 runs-on : ubuntu-latest
5154 steps :
5255 - uses : actions/checkout@v4
5861 run : docker compose -f docker-compose.test-mariadb.yml run -e CI=1 bugzilla6.test test_bmo -q -f t/bmo/*.t
5962
6063 test_bugzilla6_pg :
64+ name : Interactive Tests with PostgreSQL
6165 runs-on : ubuntu-latest
6266 steps :
6367 - uses : actions/checkout@v4
6973 run : docker compose -f docker-compose.test-pg.yml run -e CI=1 bugzilla6.test test_bmo -q -f t/bmo/*.t
7074
7175 test_bugzilla6_sqlite :
76+ name : Interactive Tests with SQLite
7277 runs-on : ubuntu-latest
7378 steps :
7479 - uses : actions/checkout@v4
7984 - name : Run bmo specific tests
8085 run : docker compose -f docker-compose.test-sqlite.yml run -e CI=1 bugzilla6.test test_bmo -q -f t/bmo/*.t
8186
87+ test_release :
88+ name : Perl Test Suite
89+ runs-on : ubuntu-latest
90+ steps :
91+ - name : Checkout the repository
92+ uses : actions/checkout@v4
93+ - name : Build Docker image
94+ run : docker build -t bugzilla-release-test -f docker/images/Dockerfile.perl-testsuite .
95+ - name : Run tests
96+ run : docker run --rm bugzilla-release-test
97+
98+ shellcheck :
99+ name : ShellCheck (linting for shell scripts)
100+ runs-on : ubuntu-latest
101+ steps :
102+ - uses : actions/checkout@v4
103+ - name : Install ShellCheck
104+ run : sudo apt-get update && sudo apt-get install -y shellcheck
105+ - name : Run ShellCheck on all scripts
106+ run : |
107+ find . -type f -name '*.sh' | while read -r file; do
108+ shellcheck -x "$file"
109+ done
0 commit comments