Skip to content

Ignore documentation files in deploy and test workflows #11

Ignore documentation files in deploy and test workflows

Ignore documentation files in deploy and test workflows #11

Workflow file for this run

name: Build and Test
on:
push:
branches:
- main
paths-ignore:
- 'docs/**'
- '*.md'
pull_request:
branches:
- main
paths-ignore:
- 'docs/**'
- '*.md'
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build --if-present
- name: Run tests
run: npm run test