Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Client refinement

Client refinement #150

name: Server Integration Test
on:
push:
branches:
- 'main'
- 'cp2-server*'
- 'rust-integration-test'
- 'server-*'
- 'benchmark'
pull_request:
branches:
- 'main'
env:
CARGO_TERM_COLOR: always
jobs:
coverage:
defaults:
run:
shell: bash
working-directory: ./server
runs-on: ubuntu-latest
continue-on-error: false
env:
SERVER_ROOT: ${{ github.workspace }}/server
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: actions/checkout@v3
- name: Install Toolchain
run: rustup update stable && rustup default stable && rustup component add rustfmt
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Format check
run: cargo fmt --all -- --check
- name: setup-redis
uses: shogo82148/actions-setup-redis@v1
with:
auto-start: false
- name: start redis nodes
run: ${{ github.workspace }}/server/tests/test_setup_redis.sh
- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --codecov --output-path lcov.info -- --test-threads=1
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: lcov.info
retention-days: 3
- name: Upload to codecov
uses: codecov/codecov-action@v3
with:
token: 39758232-c13a-4e48-9863-32afe04d6828
files: lcov.info
name: codecov-umbrella # optional
fail_ci_if_error: true
verbose: true