Skip to content

[Harmony] Bug 2005381: Clean up docker configs, run tests locally easier #208

[Harmony] Bug 2005381: Clean up docker configs, run tests locally easier

[Harmony] Bug 2005381: Clean up docker configs, run tests locally easier #208

Workflow file for this run

name: Bugzilla Test Suite
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
push:
branches:
- main
pull_request:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test_sanity:
name: Sanity Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install docker-compose
run: sudo apt-get update && sudo apt-get install -y docker-compose
- name: Build the Docker images
run: docker compose -f docker-compose.test-mysql.yml build
- name: Run sanity tests
run: docker compose -f docker-compose.test-mysql.yml run --no-deps bugzilla6.test test_sanity t/*.t extensions/*/t/*.t
# test_webservices:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Install docker-compose
# run: sudo apt-get update && sudo apt-get install -y docker-compose
# - name: Build the Docker images
# run: docker compose -f docker-compose.test-mysql.yml build
# - name: Run webservice tests
# run: docker compose -f docker-compose.test-mysql.yml run bugzilla6.test test_webservices
test_bugzilla6_mysql:
name: Interactive Tests with MySQL
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install docker-compose
run: sudo apt-get update && sudo apt-get install -y docker-compose
- name: Build the Docker images
run: docker compose -f docker-compose.test-mysql.yml build
- name: Run bmo specific tests
run: docker compose -f docker-compose.test-mysql.yml run -e CI=1 bugzilla6.test test_bmo -q -f t/bmo/*.t
test_bugzilla6_mariadb:
name: Interactive Tests with MariaDB
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install docker-compose
run: sudo apt-get update && sudo apt-get install -y docker-compose
- name: Build the Docker images
run: docker compose -f docker-compose.test-mariadb.yml build
- name: Run bmo specific tests
run: docker compose -f docker-compose.test-mariadb.yml run -e CI=1 bugzilla6.test test_bmo -q -f t/bmo/*.t
test_bugzilla6_pg:
name: Interactive Tests with PostgreSQL
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install docker-compose
run: sudo apt-get update && sudo apt-get install -y docker-compose
- name: Build the Docker images
run: docker compose -f docker-compose.test-pg.yml build
- name: Run bmo specific tests
run: docker compose -f docker-compose.test-pg.yml run -e CI=1 bugzilla6.test test_bmo -q -f t/bmo/*.t
test_bugzilla6_sqlite:
name: Interactive Tests with SQLite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install docker-compose
run: sudo apt-get update && sudo apt-get install -y docker-compose
- name: Build the Docker images
run: docker compose -f docker-compose.test-sqlite.yml build
- name: Run bmo specific tests
run: docker compose -f docker-compose.test-sqlite.yml run -e CI=1 bugzilla6.test test_bmo -q -f t/bmo/*.t
test_release:
name: Perl Test Suite
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Build Docker image
run: docker build -t bugzilla-release-test -f docker/images/Dockerfile.perl-testsuite .
- name: Run tests
run: docker run --rm bugzilla-release-test