Skip to content

fix: testing on CI #745

fix: testing on CI

fix: testing on CI #745

Workflow file for this run

name: Build-CI
on:
pull_request:
branches: [develop, main, fx-ocex-testing]
push:
branches: [develop, main, fx-ocex-withdrawal]
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- name: Cache Rust Dependecies
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install toolchain
run: ./scripts/init.sh
- name: Build Project
run: |
cargo clean
cargo build --release --features runtime-benchmarks
cargo build
- name: Test Project
run: cargo test
- name: Run Cargo Trampulin
if: github.event_name == 'push'
uses: actions-rs/tarpaulin@v0.1
with:
version: '0.15.0'
args: '--exclude polkadex-node node-polkadex-runtime polkadex-primitives --workspace'
- name: Upload to codecov.io
if: github.event_name == 'push'
uses: codecov/codecov-action@v1.0.2
with:
token: ${{secrets.CODECOV_TOKEN}}
- name: Archive code coverage results
if: github.event_name == 'push'
uses: actions/upload-artifact@v1
with:
name: code-coverage-report
path: cobertura.xml