name: Continuous Integration Checks
-on:
- push:
+on: [push, pull_request]
jobs:
build:
profile: minimal
- name: Build on Rust ${{ matrix.toolchain }} with net-tokio
if: matrix.build-net-tokio
- run: RUSTFLAGS="-C link-dead-code" cargo build --verbose
+ run: RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always
- name: Build on Rust ${{ matrix.toolchain }}
if: "! matrix.build-net-tokio"
- run: RUSTFLAGS="-C link-dead-code" cargo build --verbose -p lightning
+ run: RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always -p lightning
- name: Test on Rust ${{ matrix.toolchain }} with net-tokio
if: matrix.build-net-tokio
- run: RUSTFLAGS="-C link-dead-code" cargo test --verbose
+ run: RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always
- name: Test on Rust ${{ matrix.toolchain }}
if: "! matrix.build-net-tokio"
- run: RUSTFLAGS="-C link-dead-code" cargo test --verbose -p lightning
+ run: RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always -p lightning
- name: Install deps for kcov
if: matrix.coverage
run: |
if: matrix.coverage
uses: codecov/codecov-action@v1
with:
+ # Could you use this to fake the coverage report for your PR? Sure.
+ # Will anyone be impressed by your amazing coverage? No
+ # Maybe if codecov wasn't broken we wouldn't need to do this...
+ token: f421b687-4dc2-4387-ac3d-dc3b2528af57
fail_ci_if_error: true
fuzz:
run: |
sudo apt-get update
sudo apt-get -y install build-essential binutils-dev libunwind-dev
- - name: Fuzz test on Rust ${{ matrix.TOOLCHAIN }}
- run: cd fuzz && cargo test --verbose
- - name: Generate fuzz report
+ - name: Sanity check fuzz targets on Rust ${{ env.TOOLCHAIN }}
+ run: cd fuzz && cargo test --verbose --color always
+ - name: Run fuzzers
run: cd fuzz && ./ci-fuzz.sh