diff --git a/.github/workflows/cypress-testing.yml b/.github/workflows/cypress-testing.yml new file mode 100644 index 0000000..5a585ba --- /dev/null +++ b/.github/workflows/cypress-testing.yml @@ -0,0 +1,27 @@ +name: Cypress CI with GitHub Actions +run-name: ${{ github.actor }} is testing with cypress +on: [push] +jobs: + mysql-in-docker-and-cypress: + runs-on: ubuntu-latest + services: + mysql: + image: mysql:latest + env: + MYSQL_ROOT_PASSWORD: password + MYSQL_DATABASE: terrarossa + ports: + # - 32574:3306 + - 3306:3306 + options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Cypress run + uses: cypress-io/github-action@v5 + with: + build: npm run build + start: npm start + browser: chrome + diff --git a/.github/workflows/prova-gh-action.yml b/.github/workflows/prova-gh-action.yml deleted file mode 100644 index a2c57de..0000000 --- a/.github/workflows/prova-gh-action.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Cypress CI with GitHub Actions -run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 -on: [push] -jobs: - test-host: - runs-on: ubuntu-latest - services: - mysql: - image: mysql:latest - env: - MYSQL_ROOT_PASSWORD: password - MYSQL_DATABASE: terrarossa - ports: - # - 32574:3306 - - 3306:3306 - options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 \ No newline at end of file