Skip to content

add try-catch

add try-catch #57

Workflow file for this run

name: Node.js CI
on:
push:
branches: [main]
paths-ignore:
- ".github/**"
pull_request:
branches: [main]
paths-ignore:
- ".github/**"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, latest]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci
- run: npm run lint
- run: npm run test
- run: npm run build
build_image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: .
push: false