Skip to content

chore: review proposals #3561

chore: review proposals

chore: review proposals #3561

Workflow file for this run

name: CI
on:
push:
branches:
- dev
pull_request:
workflow_dispatch:
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
permissions:
actions: read
contents: read
env:
HUSKY: 0
jobs:
test-and-lint:
name: Test and Lint
runs-on:
- frontend
- self-hosted
if: (github.event_name == 'pull_request' && !github.event.pull_request.draft) || (github.event_name == 'push' && github.ref == 'refs/heads/dev')
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: pnpm
- name: Setup dependencies
run: |
pnpm install --frozen-lockfile
pnpm cypress install --force
- uses: nrwl/nx-set-shas@v4
# - name: Run lint for affected projects
# run: pnpm exec nx affected --target lint
# - name: Run tests for affected projects
# run: pnpm exec nx affected --target test --ci --coverage
# - name: Run build for affected projects
# run: pnpm exec nx affected --target build
- name: Run lint test and build
run: pnpm exec nx run-many --target lint test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}