Skip to content

Merge pull request #1724 from ghiscoding/bugfix/ms-select-bs-shadow #4966

Merge pull request #1724 from ghiscoding/bugfix/ms-select-bs-shadow

Merge pull request #1724 from ghiscoding/bugfix/ms-select-bs-shadow #4966

Workflow file for this run

# CI Build & Vitest Unit Tests (ship smaller name for CI badge)
name: Build & Tests
on:
# Trigger the workflow on push or pull request,
# but only for the master branch on Push and any branches on PR
push:
branches:
- master
- next
pull_request:
branches:
- '**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
run:
strategy:
fail-fast: false
matrix:
node: [20]
platform:
- ubuntu-latest
name: '${{matrix.platform}} / Node ${{ matrix.node }}'
runs-on: ${{matrix.platform}}
if: ${{ !startsWith(github.event.head_commit.message, 'docs:') }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set NodeJS
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 9
run_install: false
- run: node --version
- run: pnpm --version
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Run pnpm install dependencies
run: pnpm install
- name: TSC Full Bundle (all Bundler types)
run: pnpm bundle
- name: Run Vitest unit tests
if: ${{ !contains(github.event.head_commit.message, 'chore(release)') }}
run: pnpm test:coverage
- name: Upload Vitest coverage to Codecov
if: ${{ !contains(github.event.head_commit.message, 'chore(release)') }}
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: test/vitest-coverage
verbose: true
- name: Retry Codecov upload when 1st try failed
if: ${{ failure() && !contains(github.event.head_commit.message, 'chore(release)') }}
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: test/vitest-coverage
verbose: true