Skip to content

Commit

Permalink
GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ahti committed Aug 21, 2019
1 parent 2d39839 commit ea158d7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
target
data
test-data
14 changes: 14 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
on: push
name: Test
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
# - name: docker://hatzel/vorleser-test
# uses: docker://hatzel/vorleser-test
# with:
# entrypoint: sh
# args: -c "ln -s /root/.rustup ~/.rustup && cargo test"
- run: docker build . --target builder --tag builder
- run: docker run --rm -e RUST_BACKTRACE=full builder cargo test
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ RUN apt-get update && \
RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2018-12-08 -y
ENV PATH=/root/.cargo/bin:$PATH

RUN RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin
# RUN RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin --version 0.7.0

ADD . vorleser-server

WORKDIR /root/vorleser-server



Expand All @@ -42,8 +46,7 @@ RUN RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin

FROM builder

ADD . vorleser-server
RUN cd vorleser-server && cargo build --release
RUN cargo build --release



Expand Down

0 comments on commit ea158d7

Please sign in to comment.