diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b947a30..a47ba8b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,3 +37,12 @@ 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 + + docker: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Build Docker image + run: | + docker build . --file Dockerfile --tag coverage:$(date +%s) 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