Bump esbuild and tsx in /examples #20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright 2026 Circle Internet Group, Inc. All rights reserved. | |
| # | |
| # SPDX-License-Identifier: Apache-2.0 | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, | |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| # See the License for the specific language governing permissions and | |
| # limitations under the License. | |
| name: Code Coverage | |
| on: | |
| pull_request: | |
| branches: [master] | |
| push: | |
| branches: [master] | |
| env: | |
| MINIMUM_COVERAGE_PERCENT: 90 | |
| permissions: | |
| contents: read | |
| jobs: | |
| coverage: | |
| name: Test Coverage | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Rust | |
| run: ./scripts/setup-rust.sh | |
| - name: Install llvm-tools-preview component | |
| run: rustup component add llvm-tools-preview | |
| - name: Install cargo-llvm-cov | |
| uses: taiki-e/install-action@cargo-llvm-cov | |
| - name: Check coverage threshold | |
| run: | | |
| cargo llvm-cov --all-features --workspace --ignore-filename-regex 'test.*\\.rs$' --fail-under-lines ${{ env.MINIMUM_COVERAGE_PERCENT }} | |
| - name: Generate HTML coverage report for debugging | |
| run: | | |
| cargo llvm-cov --all-features --workspace --ignore-filename-regex 'test.*\\.rs$' --html | |
| if: failure() | |
| - name: Upload HTML report as artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-report | |
| path: target/llvm-cov/html/ | |
| if: failure() |