Skip to content

Add ignore list for links #52

Add ignore list for links

Add ignore list for links #52

Workflow file for this run

name: Build and Test
on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: false
default: 'warning'
type: choice
options:
- info
- warning
- debug
# Trigger the workflow on pull request (only for the master branch)
# push:
# branches:
# - '**'
# paths-ignore:
# - '**/media/**'
pull_request:
branches:
- master
paths-ignore:
- '**/media/**'
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [20.x]
defaults:
run:
shell: bash
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Lint
run: |
if [[ ${{ matrix.os }} != 'windows-latest' ]]; then
npm run lint
else
echo "Lint on Windows:"
npx eslint *.js **/*.js
fi
- name: Test
run: |
echo "Tests from code:"
npm test
echo "Tests from file with TARGET_FILE_PATH env variable:"
TARGET_FILE_PATH='./README.md' node index.js