Skip to content

Commit

Permalink
squase commits
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeantonio21 committed Oct 12, 2022
1 parent 6d80422 commit a79e644
Show file tree
Hide file tree
Showing 101 changed files with 2,519 additions and 1,045 deletions.
60 changes: 23 additions & 37 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
name: Source Coverage

on:
workflow_dispatch:
'on':
push:
branches:
- development
Expand All @@ -13,53 +12,38 @@ env:

jobs:
coverage:
name: test and generate cov
name: test and generate coverage
runs-on: [ self-hosted, ubuntu18.04-high-mem ]
steps:
- name: checkout source code
uses: actions/checkout@v3

- name: ubuntu dependencies
run: |
sudo apt-get update && \
sudo apt-get -y install \
openssl \
libssl-dev \
pkg-config \
libsqlite3-dev \
clang-10 \
git \
cmake \
libc++-dev \
libc++abi-dev \
libprotobuf-dev \
protobuf-compiler \
libncurses5-dev \
libncursesw5-dev \
zip \
build-essential \
libgtk-3-dev \
libwebkit2gtk-4.0-dev \
libsoup2.4-dev \
curl \
wget \
libappindicator3-dev \
patchelf \
librsvg2-dev
- name: checkout
uses: actions/checkout@v2
sudo apt-get update
sudo bash scripts/install_ubuntu_dependencies.sh
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: llvm-tools-preview
- uses: actions-rs/cargo@v1

- name: cache cargo files and outputs
uses: Swatinem/rust-cache@v2
with:
command: test
args: --all-features --no-fail-fast
cache-on-failure: true

- uses: actions-rs/cargo@v1
env:
RUSTFLAGS: "-C instrument-coverage"
RUSTDOCFLAGS: "-C instrument-coverage"
LLVM_PROFILE_FILE: "coverage_data-%p-%m.profraw"
- id: coverage
name: Prepare coverage data
with:
command: test
args: --all-features --no-fail-fast

- name: prepare coverage data
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
Expand All @@ -72,13 +56,15 @@ jobs:
--vcs-branch $GITHUB_REF_NAME \
--service-name github \
--service-job-id ${GITHUB_RUN_ID}
- id: archive-coverage
name: archive-coverage
- name: archive coverage data
uses: actions/upload-artifact@v3
with:
path: target/coveralls_coverage.json
name: coveralls-coverage

- name: Coveralls upload
continue-on-error: true
uses: toshke/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ jobs:
npm run check-fmt
npm run lint
npm ci
cd ../clients/base_node_grpc_client
cd ../clients/nodejs/base_node_grpc_client
npm install
cd ../wallet_grpc_client
npm install
Expand Down
Loading

0 comments on commit a79e644

Please sign in to comment.