- Updated linting configuration to use 'eslint --fix' for automatic code formatting on staged files. - Removed explicit version specification for pnpm in GitHub workflows to allow for flexibility in version management. - Enhanced opportunity resolution service with locking mechanism to prevent race conditions during opportunity creation. - Simplified Salesforce account service by querying the auto-generated account number instead of generating it manually. - Improved cancellation date handling in internet cancellation service to avoid timezone issues.
57 lines
1.2 KiB
YAML
57 lines
1.2 KiB
YAML
name: Pull Request Checks
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- master
|
|
|
|
jobs:
|
|
quality-checks:
|
|
name: Code Quality & Security
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "22"
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
|
|
- name: Get pnpm store directory
|
|
id: pnpm-cache
|
|
shell: bash
|
|
run: |
|
|
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
|
|
|
|
- name: Setup pnpm cache
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
|
|
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-pnpm-store-
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Run linter
|
|
run: pnpm lint
|
|
|
|
- name: Run type check
|
|
run: pnpm type-check
|
|
|
|
- name: Run security audit
|
|
run: pnpm security:check
|
|
|
|
- name: Run tests
|
|
run: pnpm test
|
|
|
|
- name: Check formatting
|
|
run: pnpm format:check
|