diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b947a30..816b7a3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,3 +37,8 @@ jobs: cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out Lcov --output-dir ./coverage - name: Upload to coveralls.io uses: coverallsapp/github-action@v2 + - name: Build Docker image + uses: docker/build-push-action@v4 + with: + context: . + file: ./Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..59d0ee1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM rustlang/rust:nightly-bullseye +WORKDIR /app +COPY . /app +RUN rustc -V +RUN cargo install cargo-tarpaulin +RUN cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out HTML --output-dir ./coverage