Skip to content

Exclude fixture tests from main test suite #68

Exclude fixture tests from main test suite

Exclude fixture tests from main test suite #68

Workflow file for this run

name: CI/CD
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run quality checks on changed files
env:
GITHUB_EVENT_NAME: ${{ github.event_name }}
PR_BASE_SHA: ${{ github.event.pull_request.base.sha }}
PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
run: ./.github/scripts/run-quality-checks.sh
- name: Run tests
run: npm test
- name: Build package
run: npm run build
- name: Test CLI functionality
run: |
node dist/command-line-parser/cli.js --help
echo "const x = 1 + 2;" > test.ts
node dist/command-line-parser/cli.js select test.ts --regex "x"
rm test.ts