Skip to content

Hide last updated at when the date is not available #819

Hide last updated at when the date is not available

Hide last updated at when the date is not available #819

Workflow file for this run

# Name that shows up in the badge
name: Backend
# Trigger workflow on pushes and pull requests to all branches
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-22.04
# This job is to test whether npm dependencies are installable, so we use
# `npm install`, which also installs devDependencies.
name: Build
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: backend/package-lock.json
- run: npm install -g npm@9; cd backend; npm install
format:
runs-on: ubuntu-22.04
# This job is to check the formatting with prettier, so we install exact
# dependencies from package-lock.json with `npm ci`.
name: Prettier format check
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: backend/package-lock.json
- run: npm install -g npm@9; cd backend; npm ci; npm run format:check