Skip to content

chore(deps-dev): bump the eslint-plugins group across 1 directory with 2 updates #276

chore(deps-dev): bump the eslint-plugins group across 1 directory with 2 updates

chore(deps-dev): bump the eslint-plugins group across 1 directory with 2 updates #276

Workflow file for this run

name: Run tests
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
run-tests:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
steps:
- name: Checkout repository
uses: actions/checkout@v7
- uses: joshjohanning/npm-version-check-action@v2
- name: Setup Node.js
uses: actions/setup-node@v7
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run linting
run: npm run lint
- name: Run formatting check
run: npm run format:check
- name: Run tests
run: npm test
- name: Link package globally
if: always()
run: npm link
- name: Publish sample results to job summary
if: always()
run: |
echo '## Test Results' >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
hsa-expense-analyzer --dirPath ./test-data 2>&1 | sed 's/\x1b\[[0-9;]*m//g' >> $GITHUB_STEP_SUMMARY || true
echo '```' >> $GITHUB_STEP_SUMMARY