refactor: split ChargePointForm into Create and Update parts #3621
Workflow file for this run
This file contains hidden or 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: build and run tests | |
| on: [ push, pull_request ] | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ ubuntu-latest ] | |
| java: [ '21', '23', '25' ] | |
| database: | |
| - image: 'mysql:8.0' | |
| databaseName: 'mysql' | |
| command: '' | |
| healthCmd: 'mysqladmin ping' | |
| - image: 'mysql:8.4' | |
| databaseName: 'mysql' | |
| command: '' | |
| healthCmd: 'mysqladmin ping' | |
| - image: 'mariadb:10.6.25' | |
| databaseName: 'mariadb' | |
| command: '--innodb-use-native-aio=0' | |
| healthCmd: 'healthcheck.sh --connect --innodb_initialized' | |
| - image: 'mariadb:10.11.16' | |
| databaseName: 'mariadb' | |
| command: '--innodb-use-native-aio=0' | |
| healthCmd: 'healthcheck.sh --connect --innodb_initialized' | |
| - image: 'mariadb:11.4.10' | |
| databaseName: 'mariadb' | |
| command: '--innodb-use-native-aio=0' | |
| healthCmd: 'healthcheck.sh --connect --innodb_initialized' | |
| - image: 'mariadb:11.8.6' | |
| databaseName: 'mariadb' | |
| command: '--innodb-use-native-aio=0' | |
| healthCmd: 'healthcheck.sh --connect --innodb_initialized' | |
| runs-on: ${{ matrix.os }} | |
| name: java:${{ matrix.java }}, ${{ matrix.database.image }} | |
| services: | |
| db: | |
| image: ${{ matrix.database.image }} | |
| command: ${{ matrix.database.command }} | |
| env: | |
| TZ: +00:00 | |
| MYSQL_ROOT_PASSWORD: root | |
| MARIADB_ROOT_PASSWORD: root | |
| MYSQL_DATABASE: root | |
| MARIADB_DATABASE: root | |
| ports: | |
| - 3306:3306 | |
| options: --health-cmd="${{ matrix.database.healthCmd }}" --health-interval=10s --health-timeout=5s --health-retries=6 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Java ${{ matrix.java }} | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: ${{ matrix.java }} | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Set up database | |
| run: | | |
| mysql -h 127.0.0.1 -P 3306 -uroot -proot -e "SELECT @@VERSION;" | |
| mysql -h 127.0.0.1 -P 3306 -uroot -proot -e "CREATE DATABASE stevedb_test_2aa6a783d47d;" -v | |
| mysql -h 127.0.0.1 -P 3306 -uroot -proot -e "CREATE USER 'steve'@'%' IDENTIFIED BY 'changeme';" -v | |
| mysql -h 127.0.0.1 -P 3306 -uroot -proot -e "GRANT ALL PRIVILEGES ON stevedb_test_2aa6a783d47d.* TO 'steve'@'%';" -v | |
| - name: Build with Maven | |
| run: ./mvnw -B -V -Dmaven.javadoc.skip=true -Ptest,${{ matrix.database.databaseName }} clean package --file pom.xml | |
| - name: Run integration tests (*IT) | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
| run: ./mvnw -B -V -Dmaven.javadoc.skip=true -Ptest,${{ matrix.database.databaseName }} -Dtest='*IT' test --file pom.xml | |
| - name: Start the app and visit signin web page | |
| run: | | |
| java -Djava.net.preferIPv4Stack=true -jar target/steve.war & | |
| sleep 30 | |
| curl --fail --show-error --silent http://localhost:8080/steve/manager/signin > /tmp/steve-signin.html | |
| killall java |