diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 927b431..c02bc7d 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -1,16 +1,16 @@ name: backend on: push: - branches: [ "master" ] + branches: [ "main" ] pull_request: - branches: [ "master" ] + branches: [ "main" ] jobs: lint-and-tests: runs-on: ubuntu-latest env: - DATABASE_URL: "mysql://user1:password1@127.0.0.1:3306/auto_entreprise_test?serverVersion=10.9.6-MariaDB" + DATABASE_URL: "mysql://user1:password1@localhost:3306/auto_entreprise_test?serverVersion=10.9.6-MariaDB" DIRECTORY: ./backend services: @@ -49,14 +49,6 @@ jobs: working-directory: ${{ env.DIRECTORY }} run: composer ps - - name: debug 1 - working-directory: ${{ env.DIRECTORY }} - run: docker ps -a - - - name: debug 2 - working-directory: ${{ env.DIRECTORY }} - run: docker exec mariadb mysql -u root -psecret -Bse "show databases" - - name: Create database working-directory: ${{ env.DIRECTORY }} run: php bin/console doc:database:create --no-interaction -e test