diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 61ce048..73a23cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,24 +25,35 @@ jobs: run: npm install - name: Run tests - run: npm test + run: npm test -- --watch=false --browsers=ChromeHeadless - name: Build project run: npm run build + - name: upload artifact + uses: actions/upload-artifact@v3 + with: + name: angular-build + path: "./dist/" + deploy: needs: build runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v3 - + - name: download artifact + uses: actions/download-artifact@v3 + with: + name: angular-build + path: "./dist/" - name: Deploy to cPanel hosting via FTP uses: SamKirkland/FTP-Deploy-Action@4.3.0 with: server: ${{ secrets.FTP_SERVER }} username: ${{ secrets.FTP_USERNAME }} password: ${{ secrets.FTP_PASSWORD }} - local-dir: ./build + local-dir: ./dist/ # Adjust this to match your project name server-dir: /public_html/ # Adjust this to your target directory on the server - port: ${{ secrets.FTP_PORT }} # Optional, default is 21 + port: ${{ secrets.FTP_PORT }} + log-level: verbose \ No newline at end of file