mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-27 17:30:30 +08:00
Merge branch 'develop' into fix/rpc-tip
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM stacks-node:integrations
|
||||
FROM stacks-node:integrations AS test
|
||||
|
||||
ARG test_name
|
||||
ENV BITCOIND_TEST 1
|
||||
@@ -6,7 +6,7 @@ ENV BITCOIND_TEST 1
|
||||
RUN cargo build && \
|
||||
cargo test -- --test-threads 1 --ignored "$test_name"
|
||||
|
||||
RUN grcov . --binary-path ../../target/debug/ -s ../.. -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info && \
|
||||
curl -Os https://uploader.codecov.io/latest/linux/codecov && \
|
||||
chmod +x codecov && \
|
||||
./codecov --name "$test_name"
|
||||
RUN grcov . --binary-path ../../target/debug/ -s ../.. -t lcov --branch --ignore-not-existing --ignore "/*" -o /lcov.info
|
||||
|
||||
FROM scratch AS export-stage
|
||||
COPY --from=test /lcov.info /
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM rust:bullseye AS build
|
||||
FROM rust:bullseye AS test
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
@@ -15,7 +15,7 @@ RUN cargo build && \
|
||||
cargo test
|
||||
|
||||
# Generate coverage report and upload it to codecov
|
||||
RUN grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info && \
|
||||
curl -Os https://uploader.codecov.io/latest/linux/codecov && \
|
||||
chmod +x codecov && \
|
||||
./codecov --name "unit_tests"
|
||||
RUN grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info
|
||||
|
||||
FROM scratch AS export-stage
|
||||
COPY --from=test /build/lcov.info /
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM rust:bullseye
|
||||
FROM rust:bullseye AS test
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
@@ -22,7 +22,7 @@ RUN cargo test --no-run --workspace && \
|
||||
ENV BITCOIND_TEST 1
|
||||
RUN cd testnet/stacks-node && cargo test --release --features prod-genesis-chainstate -- --test-threads 1 --ignored neon_integrations::bitcoind_integration_test
|
||||
|
||||
RUN grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info && \
|
||||
curl -Os https://uploader.codecov.io/latest/linux/codecov && \
|
||||
chmod +x codecov && \
|
||||
./codecov --name "large_genesis"
|
||||
RUN grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info
|
||||
|
||||
FROM scratch AS export-stage
|
||||
COPY --from=test /src/lcov.info /
|
||||
|
||||
14
.github/workflows/bitcoin-tests.yml
vendored
14
.github/workflows/bitcoin-tests.yml
vendored
@@ -72,7 +72,12 @@ jobs:
|
||||
env:
|
||||
DOCKER_BUILDKIT: 1
|
||||
TEST_NAME: ${{ matrix.test-name }}
|
||||
run: docker build --build-arg test_name=${{ matrix.test-name }} -f ./.github/actions/bitcoin-int-tests/Dockerfile.bitcoin-tests .
|
||||
run: docker build -o coverage-output --build-arg test_name=${{ matrix.test-name }} -f ./.github/actions/bitcoin-int-tests/Dockerfile.bitcoin-tests .
|
||||
- uses: codecov/codecov-action@v2
|
||||
with:
|
||||
files: ./coverage-output/lcov.info
|
||||
name: ${{ matrix.test-name }}
|
||||
fail_ci_if_error: true
|
||||
atlas-test:
|
||||
if: ${{ true }}
|
||||
runs-on: ubuntu-latest
|
||||
@@ -97,4 +102,9 @@ jobs:
|
||||
env:
|
||||
DOCKER_BUILDKIT: 1
|
||||
TEST_NAME: ${{ matrix.test-name }}
|
||||
run: docker build --build-arg test_name=${{ matrix.test-name }} -f ./.github/actions/bitcoin-int-tests/Dockerfile.bitcoin-tests .
|
||||
run: docker build -o coverage-output --build-arg test_name=${{ matrix.test-name }} -f ./.github/actions/bitcoin-int-tests/Dockerfile.bitcoin-tests .
|
||||
- uses: codecov/codecov-action@v2
|
||||
with:
|
||||
files: ./coverage-output/lcov.info
|
||||
name: ${{ matrix.test-name }}
|
||||
fail_ci_if_error: true
|
||||
|
||||
16
.github/workflows/stacks-blockchain.yml
vendored
16
.github/workflows/stacks-blockchain.yml
vendored
@@ -42,7 +42,12 @@ jobs:
|
||||
# Remove .dockerignore file so codecov has access to git info
|
||||
run: |
|
||||
rm .dockerignore
|
||||
docker build -f ./.github/actions/bitcoin-int-tests/Dockerfile.large-genesis .
|
||||
docker build -o coverage-output -f ./.github/actions/bitcoin-int-tests/Dockerfile.large-genesis .
|
||||
- uses: codecov/codecov-action@v2
|
||||
with:
|
||||
files: ./coverage-output/lcov.info
|
||||
name: large_genesis
|
||||
fail_ci_if_error: true
|
||||
|
||||
# Run unit tests with code coverage
|
||||
unit-tests:
|
||||
@@ -55,7 +60,12 @@ jobs:
|
||||
# Remove .dockerignore file so codecov has access to git info
|
||||
run: |
|
||||
rm .dockerignore
|
||||
docker build -f ./.github/actions/bitcoin-int-tests/Dockerfile.code-cov .
|
||||
docker build -o coverage-output -f ./.github/actions/bitcoin-int-tests/Dockerfile.code-cov .
|
||||
- uses: codecov/codecov-action@v2
|
||||
with:
|
||||
files: ./coverage-output/lcov.info
|
||||
name: unit_tests
|
||||
fail_ci_if_error: true
|
||||
|
||||
open-api-validation:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -99,7 +109,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
platform: [ windows-x64, macos-x64, linux-x64, linux-musl-x64, linux-armv7, linux-arm64 ]
|
||||
platform: [ windows-x64, macos-x64, macos-arm64, linux-x64, linux-musl-x64, linux-armv7, linux-arm64 ]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
Reference in New Issue
Block a user