Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update release.yml #226

Update release.yml

Update release.yml #226

Workflow file for this run

name: code-coverage
on:
workflow_dispatch:
pull_request:
branches: [ main ]
push:
branches: [ main ]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
jobs:
build-test-coverage:
name: build-test-coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# Setup Node
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22
# Setup Rust
- name: Install Rust
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- name: Add Rust to PATH
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Cargo Update
run: cargo update
- name: Install Dependencies
run: npm install -g pnpm && pnpm install
- name: Run Build
run: pnpm build
- name: Run Tests
run: pnpm test:ci
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}