Skip to content

feat: npx-and-azure-artifacts-the-secret-cli-delivery-mechanism (#968) #2625

feat: npx-and-azure-artifacts-the-secret-cli-delivery-mechanism (#968)

feat: npx-and-azure-artifacts-the-secret-cli-delivery-mechanism (#968) #2625

name: API build and test ⚙️
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- main
workflow_dispatch:
jobs:
api_build_and_test_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: API build and test ⚙️
steps:
- name: Checkout 📥
uses: actions/checkout@v4
with:
# Number of commits to fetch. 0 indicates all history for all branches and tags.
# Default: 1
fetch-depth: 0
- name: Setup Node.js 🔧
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: API build and test ⚙️
run: |
cd blog-website/api
npm ci
npm run lint
npm run build
npm test