Skip to content

Commit

Permalink
fix: github actions (#4014)
Browse files Browse the repository at this point in the history
Description
---
Fix integration tests on github actions. They were running but not reporting.
Fix the coverage setup.

How Has This Been Tested?
---
I've tested non-critical tests only.
  • Loading branch information
Cifko committed Apr 11, 2022
1 parent 4812261 commit a03392e
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 13 deletions.
40 changes: 28 additions & 12 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
push:
branches:
- development

env:
toolchain: nightly-2021-11-20

jobs:
coverage:
name: test
Expand All @@ -19,17 +23,30 @@ jobs:
run: |
sudo apt-get update && \
sudo apt-get -y install \
build-essential \
libgtk-3-dev \
libwebkit2gtk-4.0-dev \
libsoup2.4-dev \
curl \
wget \
libappindicator3-dev \
patchelf \
librsvg2-dev \
libprotobuf-dev \
protobuf-compiler
openssl \
libssl-dev \
pkg-config \
libsqlite3-dev \
clang-10 \
clang \
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: test key manager wasm
run: |
npm install -g wasm-pack
Expand All @@ -50,7 +67,6 @@ jobs:
command: test
args: --all-features
- name: generate coverage report
usesid: coverage
run: |
grcov . -s . --binary-path ./target/debug -t lcov --branch --ignore-not-existing -o ./target/report.lcov
- name: Coveralls upload
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/long_running.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Runs weekly (saturday noon)
name: Non critical integration tests
name: Long running integration tests
on:
schedule:
- cron: "0 12 * * 6"
Expand Down Expand Up @@ -80,9 +80,11 @@ jobs:
- name: Run integration tests
run: cd integration_tests && mkdir -p cucumber_output && node_modules/.bin/cucumber-js --profile "long-running" --tags "not @wallet-ffi" --format json:cucumber_output/tests.cucumber --exit --retry 2 --retry-tag-filter "@flaky and not @broken"
- name: Generate report
if: always()
run: cd integration_tests && node ./generate_report.js
- name: Store test results
uses: actions/upload-artifact@v3
if: always()
with:
name: test results
path: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/non_critical_integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,11 @@ jobs:
- name: Run integration tests
run: cd integration_tests && mkdir -p cucumber_output && node_modules/.bin/cucumber-js --profile "non-critical" --tags "not @wallet-ffi" --format json:cucumber_output/tests.cucumber --exit --retry 2 --retry-tag-filter "@flaky and not @broken"
- name: Generate report
if: always()
run: cd integration_tests && node ./generate_report.js
- name: Store test results
uses: actions/upload-artifact@v3
if: always()
with:
name: test results
path: |
Expand Down

0 comments on commit a03392e

Please sign in to comment.