Skip to content

Merge pull request #420 from madisonbikes/dependabot/npm_and_yarn/zod… #17

Merge pull request #420 from madisonbikes/dependabot/npm_and_yarn/zod…

Merge pull request #420 from madisonbikes/dependabot/npm_and_yarn/zod… #17

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# Then, if tests pass, it runs a remote setup script on the configured server over SSH
name: Deploy to server
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci
- run: npm run test --maxWorkers=50%
- run: npm run lint
- name: Deploy on Server
uses: appleboy/ssh-action@v1.0.0
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: ${{ secrets.DEPLOY_SCRIPT }}