Skip to content

parse response in fetchet examples within README #6

parse response in fetchet examples within README

parse response in fetchet examples within README #6

Workflow file for this run

name: "Lint"
on:
push:
branches:
- "*"
- "*/*"
- "**"
pull_request:
branches:
- "*"
- "*/*"
- "**"
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# TODO: Add older node versions: 12, 14, 16, 18
node-version: [20.x, 22.x, 24.x]
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
persist-credentials: true
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v46
- name: List all changed files
run: |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
echo "$file was changed"
done
- name: Check changes
id: changed-ignored
uses: tj-actions/changed-files@v46
with:
files: |
**.md
.github/**
docs/**
bin/**
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
if: steps.changed-ignored.outputs.only_modified == 'false'
- run: npm ci
if: steps.changed-ignored.outputs.only_modified == 'false'
- run: npm run lint
if: steps.changed-ignored.outputs.only_modified == 'false'
- run: echo "✅ Linting completed successfully on Node.js ${{ matrix.node-version }}!"