Made some improvements to the software #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run integration tests | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
services: | |
mysql: | |
image: mysql:latest | |
env: | |
MYSQL_ROOT_PASSWORD: root | |
MYSQL_DATABASE: test_db | |
MYSQL_USERNAME: root | |
MYSQL_PASSWORD: root | |
ports: | |
- 3306:3306 | |
options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 5 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
cache: maven | |
- name: Run all unit tests and package all services | |
run: mvn clean package | |
working-directory: code/ | |
- name: Build all docker images (for testing) | |
run: ./docker-build.sh ckb-test | |
working-directory: code/ | |
- name: Run all integration tests | |
run: mvn clean verify | |
working-directory: code/integration-tests |