Skip to content

Use newsdataapi as the npm package name (repo stays newsdata-reactjs-… #2

Use newsdataapi as the npm package name (repo stays newsdata-reactjs-…

Use newsdataapi as the npm package name (repo stays newsdata-reactjs-… #2

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test:
name: test (Node ${{ matrix.node-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [18, 20, 22]
steps:
- uses: actions/checkout@v4
- name: Set up Node ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install --no-audit --no-fund
- name: Run tests
run: npm test