Skip to content

feat: codecov

feat: codecov #40

Workflow file for this run

name: Code Coverage
on: pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Setup Dependencies for Sui Binary
run: sudo apt-get update && sudo apt-get install -y libpq-dev
- name: Download and Install Sui
env:
SUI_VERSION: devnet-v1.25.0
run: |
curl -L -o sui-${SUI_VERSION}-ubuntu-x86_64.tgz https://github.com/MystenLabs/sui/releases/download/${SUI_VERSION}/sui-${SUI_VERSION}-ubuntu-x86_64.tgz
tar -xvf sui-${SUI_VERSION}-ubuntu-x86_64.tgz
sudo mv ./sui-test-validator /usr/local/bin/sui-test-validator
sudo mv ./sui /usr/local/bin/sui
sudo mv ./sui-debug /usr/local/bin/sui-debug
rm -rf sui-${SUI_VERSION}-ubuntu-x86_64.tgz
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Test
timeout-minutes: 60
run: npm run coverage
- name: debug
run: |
ls -al
ls -al ./move/axelar/
cat ./move/axelar/.coverage_map.mvcov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./move/axelar/.coverage_map.mvcov
fail_ci_if_error: true