Skip to content

chore: GitHub Actions #1

chore: GitHub Actions

chore: GitHub Actions #1

Workflow file for this run

name: backend
on:
workflow_dispatch:
push:
paths:
- 'packages/backend/**'
branches:
- main
tags:
- "v*.*.*"
pull_request:
paths:
- 'packages/backend/**'
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
name: Check for Linting Errors
defaults:
run:
working-directory: packages/backend
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 22
- name: NPM Install
run: npm install --only=dev
shell: bash
- name: Check for Formatting Issues
run: npm run format
- name: Check for Linting Issues
run: npm run lint
build:
runs-on: ubuntu-latest
name: Build Code
defaults:
run:
working-directory: packages/backend
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 22
- name: NPM Install
run: npm install
shell: bash
- name: Build
run: npm run build