Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tdatIT authored May 4, 2024
1 parent e60fcf0 commit 65aabd1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
branches: [ "main" ]

jobs:

build:
env:
DB_DATABASE: recauction_db
Expand All @@ -20,7 +19,8 @@ jobs:
- name: Set up MySQL
run: |
sudo /etc/init.d/mysql start
mysql -e 'CREATE DATABASE ${{ env.DB_DATABASE }};' -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }}
sudo mysql -e "ALTER USER '${{ env.DB_USER }}'@'localhost' IDENTIFIED WITH mysql_native_password BY '${{ env.DB_PASSWORD }}';"
sudo mysql -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }} -e "CREATE DATABASE IF NOT EXISTS ${{ env.DB_DATABASE }};"
- uses: actions/checkout@v4
- name: Set up JDK 11
Expand All @@ -30,7 +30,7 @@ jobs:
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn clean package -DskipTest
run: mvn clean package -DskipTests

# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
- name: Update dependency graph
Expand Down

0 comments on commit 65aabd1

Please sign in to comment.