Skip to content

Update docker-build-and-push-latest.yml #60

Update docker-build-and-push-latest.yml

Update docker-build-and-push-latest.yml #60

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Start MySQL
run: sudo systemctl start mysql.service
- name: Init database
run: mysql -uroot -proot -e "create database nhk_test;"
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Test
run: export MYSQL_PASSWORD=root && mvn test
- name: Test coverage
run: |
bash <(curl https://codecov.io/bash)