Skip to content

husky-extract

husky-extract #23

Workflow file for this run

name: Tests
on:
pull_request:
branches:
- master
jobs:
test-build-prettier:
name: Build, Test and check prettier
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
concurrency:
group: tests-${{ github.ref }}-${{ matrix.node-version }}
cancel-in-progress: true
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm ci
- name: Build
run: |
npm run build
- name: Run Jest Test
run: |
npm run test
- name: Run Prettier
run: |
npm run lint:prettier
- name: Run with txt sitemap
run: |
node dist/src/index.js https://www.advancedhtml.co.uk/sitemap.txt -p 3
- name: Run with xml with final links
run: |
node dist/src/index.js https://www.profiq.com/wp-sitemap-posts-job-1.xml -t 4500
- name: Run with xml with nested links
run: |
node dist/src/index.js https://movingfast.tech/sitemap.xml -w