#copy and paste it to .github/workflow folder #name: CI/CD Pipeline # #on: # push: # branches: # - master # #jobs: # build: # runs-on: ubuntu-latest # # steps: # - name: Checkout code # uses: actions/checkout@v2 # # - name: Install dependencies # run: npm install # # - name: Run tests # run: npm test # # - name: Deploy to server # uses: easingthemes/ssh-deploy@v2 # with: # host: ${{ secrets.SERVER_HOST }} # username: ${{ secrets.SERVER_USERNAME }} # key: ${{ secrets.SSH_PRIVATE_KEY }} # passphrase: ${{ secrets.SSH_PASSPHRASE }} # port: ${{ secrets.SERVER_PORT }} # local_path: ./ # server_path: /home/gcarecom/www/lab-api