Skip to content

Commit

Permalink
test.yaml: Upload test coverage reports to codecov. (livepeer#2372)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjpotter92 authored and ad-astra-video committed May 25, 2022
1 parent cb0c1f1 commit 77b02d4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ name: Trigger test suite

on:
pull_request:
branches:
- master
push:
branches:
- master

jobs:
test:
name: Test the livepeer project
name: Run tests defined for the project
runs-on: ubuntu-18.04
steps:
- name: Check out code
Expand Down Expand Up @@ -46,11 +48,11 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update \
&& sudo apt-get install -y software-properties-common curl apt-transport-https \
&& sudo apt-get install -yqq software-properties-common curl apt-transport-https \
&& sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 15CF4D18AF4F7421 \
&& sudo add-apt-repository "deb [arch=amd64] http://apt.llvm.org/xenial/ llvm-toolchain-xenial-8 main" \
&& sudo apt-get update \
&& sudo apt-get -y install clang-8 clang-tools-8 build-essential pkg-config autoconf git python
&& sudo apt-get -yqq install clang-8 clang-tools-8 build-essential pkg-config autoconf git python
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-8 30 \
&& sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-8 30
Expand All @@ -67,7 +69,7 @@ jobs:
run: |
go install github.com/golang/protobuf/protoc-gen-go@v1.3.5
sudo apt-get update
sudo apt-get install -y protobuf-compiler
sudo apt-get install -yqq protobuf-compiler
- name: go fmt
run: |
Expand All @@ -81,7 +83,14 @@ jobs:
version: v1.39.0
args: '--disable-all --enable=gofmt --enable=vet --enable=golint --deadline=4m pm verification'

- name: Run tests
- name: Run tests with coverage
run: |
export PKG_CONFIG_PATH=~/compiled/lib/pkgconfig
./test.sh
- name: Upload coverage reports
uses: codecov/codecov-action@v3
with:
files: ./cover.out
name: go-livepeer
verbose: true
1 change: 1 addition & 0 deletions CHANGELOG_PENDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- \#2344 Use T.TempDir to create temporary test directory (@Juneezee)
- \#2353 Codesign and notarize macOS binaries to be allowed to run without warnings on apple devices (@hjpotter92)
- \#2351 Refactor livepeer.go to enable running Livepeer node from the code (@leszko)
- \#2372 Upload test coverage reports to codecov (@hjpotter92)

#### Broadcaster
- \#2309 Add dynamic timeout for the orchestrator discovery (@leszko)
Expand Down

0 comments on commit 77b02d4

Please sign in to comment.