diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a1c13abd..2ec60af3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -3,20 +3,6 @@ name: Tests on: ['push', 'pull_request'] jobs: - web-deploy: - name: Deploy - runs-on: ubuntu-latest - steps: - - name: 🚚 Get latest code - uses: actions/checkout@v2.3.2 - - - name: 📂 Sync files - uses: SamKirkland/FTP-Deploy-Action@4.0.0 - with: - server: vh100.timeweb.ru - port: 21 - username: cx01224_github - password: ${{ secrets.FTP_PASSWORD }} build: runs-on: ${{ matrix.os }} @@ -27,7 +13,8 @@ jobs: dependency-version: [prefer-stable] steps: - - uses: actions/checkout@v2 + - name: Get latest code + uses: actions/checkout@v2 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -50,5 +37,14 @@ jobs: run: composer update --dev --${{ matrix.dependency-version }} --ignore-platform-req=php --no-interaction --no-progress if: "matrix.php >= 8" + - name: Deploy on Test + uses: SamKirkland/FTP-Deploy-Action@4.0.0 + with: + server: vh100.timeweb.ru + port: 21 + username: cx01224_github + password: ${{ secrets.FTP_PASSWORD }} + server-dir: /test.flextype.org/public_html + - name: Run Tests run: ./vendor/bin/pest