Skip to content

fix: improve high order function for error handling #109

fix: improve high order function for error handling

fix: improve high order function for error handling #109

Workflow file for this run

name: Node.js CI
on:
push:
branches: ['main']
jobs:
build:
runs-on: [self-hosted, Linux, X64, marquinhos]
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
deploy:
needs: build
runs-on: [self-hosted, Linux, X64, marquinhos]
steps:
- name: Stop Marquinhos
run: docker compose down
- name: Build and run Marquinhos
run: docker compose up -d --build
- name: Check status
run: |
if docker ps | grep -q marquinhosbot && docker ps | grep marquinhosbot | grep -q Up; then
echo "Marquinhos is running"
else
echo "Marquinhos is not running"
exit 1
fi