Skip to content

Commit

Permalink
Merge pull request #36 from EspressoSystems/vko/merge_github_folders
Browse files Browse the repository at this point in the history
Merged libp2p-networking and phaselock's .github folder
  • Loading branch information
nmccarty authored Mar 7, 2022
2 parents 447229c + 16438e4 commit 3d711ce
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 34 deletions.
File renamed without changes.
7 changes: 6 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,9 @@ updates:
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "daily"
interval: "daily"

- package-ecosystem: "cargo"
directory: "/libp2p-networking"
schedule:
interval: "daily"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: Build (libp2p-networking)

on:
push:
Expand Down Expand Up @@ -40,14 +40,16 @@ jobs:
uses: actions-rs/clippy-check@v1
with:
token: ${{ github.token }}
args: --manifest-path libp2p-networking/Cargo.toml

- name: Audit
uses: actions-rs/audit-check@v1
with:
token: ${{ github.token }}
# Does not work with a nested dir
# - name: Audit
# uses: actions-rs/audit-check@v1
# with:
# token: ${{ github.token }}

- name: Cargo Build
run: cargo build --release
run: cargo build --release --manifest-path libp2p-networking/Cargo.toml

- name: Cargo Test
run: cargo test --verbose --release test_stress -- -Zunstable-options --report-time --test-threads=1
run: cargo test --verbose --release test_stress --manifest-path libp2p-networking/Cargo.toml -- -Zunstable-options --report-time --test-threads=1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Code Coverage
name: Code Coverage (libp2p-newtorking)

on:
push:
Expand Down Expand Up @@ -34,19 +34,20 @@ jobs:
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'

- name: Install grcov
run: |
wget -O grcov.tar.gz https://github.com/mozilla/grcov/releases/download/v0.8.2/grcov-linux-x86_64.tar.bz2
tar -xvf grcov.tar.gz
sudo mv -v grcov /home/runner/.cargo/bin/
rm -rv grcov.tar.gz
# TODO: Seems like we can't override the path where grcov runs, so we're currently code coveraging the main repo
# - name: Install grcov
# run: |
# wget -O grcov.tar.gz https://github.com/mozilla/grcov/releases/download/v0.8.2/grcov-linux-x86_64.tar.bz2
# tar -xvf grcov.tar.gz
# sudo mv -v grcov /home/runner/.cargo/bin/
# rm -rv grcov.tar.gz

- name: Run Coverage Tool (grcov)
uses: actions-rs/[email protected]
id: coverage
# - name: Run Coverage Tool (grcov)
# uses: actions-rs/[email protected]
# id: coverage

- name: Coveralls upload
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ${{ steps.coverage.outputs.report }}
# - name: Coveralls upload
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# path-to-lcov: ${{ steps.coverage.outputs.report }}
11 changes: 0 additions & 11 deletions libp2p-networking/.github/dependabot.yml

This file was deleted.

0 comments on commit 3d711ce

Please sign in to comment.