Skip to content

Use head requests for auth and only get if necessary #7

Use head requests for auth and only get if necessary

Use head requests for auth and only get if necessary #7

name: Install, lint, and test
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
run-tests:
name: Running tests
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Lint the code
run: npm run lint
- name: Run the tests
run: npm test