Skip to content

drone services removed, load more btn videos #343

drone services removed, load more btn videos

drone services removed, load more btn videos #343

Workflow file for this run

name: Node.JS CI/CD
on:
push:
branches: [main]
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.JS ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: |
cd backend
npm install
- name: Build TypeScript
run: |
cd backend
npm run build
- name: Run tests
run: |
cd backend
npm test
env:
DBHOST: ${{ secrets.DBHOST }}
deploy:
name: Deploy
needs: [test]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.JS ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies and build
run: |
cd backend
npm install
npm run build
- name: Deploy to production
uses: johnbeynon/[email protected]
with:
service-id: ${{ secrets.SERVICE_ID }}
api-key: ${{ secrets.RENDER_API_KEY }}