- Updated the CI workflow to build and test only the "reviews-stars" project. - Removed unnecessary test files for the "reviews-stars" and "tooltip" libraries. - Changed the export of TooltipComponent from default to named export.
36 lines
874 B
YAML
36 lines
874 B
YAML
name: Release
|
|
|
|
concurrency:
|
|
cancel-in-progress: true
|
|
group: test-pr-${{ github.event.pull_request.number }}
|
|
|
|
env:
|
|
ACT_OWNER: ${{ github.repository_owner }}
|
|
ACT_REPOSITORY: ${{ github.repository }}
|
|
CGO_ENABLED: 0
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
- reopened
|
|
|
|
jobs:
|
|
build_test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- run: git fetch --force --tags
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: 22
|
|
- name: Install dependencies
|
|
run: npm ci --legacy-peer-deps
|
|
- name: Build libraries
|
|
run: npx nx run-many -t build --projects="reviews-stars"
|
|
- name: Run tests
|
|
run: npx nx run-many -t test --code-coverage --passWithNoTests --projects="reviews-stars" |