diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5944dd4..5fa4a42 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,10 +18,18 @@ jobs: key: ${{ secrets.SSH_KEY }} port: ${{ secrets.PORT }} source: "." - target: ${{ secrets.PATH }} + target: ${{ secrets.PATH }}/test - name: Test - run: go test ./... + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + key: ${{ secrets.SSH_KEY }} + port: ${{ secrets.PORT }} + script: | + cd ${{ secrets.PATH }}/test + make test-app - name: Deploy uses: appleboy/ssh-action@master