Extract and Override Factory Method to control new UI. #19
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: Test Java | |
on: | |
push: | |
paths: | |
- 'Java/**' | |
- '.github/workflows/Java.yml' | |
pull_request: | |
paths: | |
- 'Java/**' | |
- '.github/workflows/Java.yml' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
DB_USER: root | |
DB_OLD_PASSWORD: root | |
DB_PASSWORD: mysql | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v3 | |
- name: Start MYSQL and import DB | |
run: | | |
sudo systemctl start mysql | |
mysqladmin --user=${{ env.DB_USER }} --password=${{ env.DB_OLD_PASSWORD }} password ${{ env.DB_PASSWORD }} | |
mysql -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }} < ${GITHUB_WORKSPACE}/build/Database/initDatabase.sql | |
- name: Set up Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: 8 | |
- name: Cache Maven packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('Java/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Build and test | |
working-directory: Java | |
run: mvn -B test -Dtest=\!org.codecop.dependencies.e.CheckoutTest |