Skip to content

fix(autoformatting): prevent autoformatting when the first underscore is preceded by a non-whitespace character #774

fix(autoformatting): prevent autoformatting when the first underscore is preceded by a non-whitespace character

fix(autoformatting): prevent autoformatting when the first underscore is preceded by a non-whitespace character #774

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: lts/*
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run ESLint
run: npm run lint:eslint
- name: Run Prettier validation
run: npm run lint:prettier
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: lts/*
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
e2e-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: lts/*
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Install playwright
run: npx playwright install --with-deps
- name: Run E2E tests
run: npm run test:e2e
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-test-results
path: test-results/
# cancel the jobs if another workflow is kicked off for the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true