diff options
author | Emiliano Ciavatta | 2021-07-28 08:17:39 +0000 |
---|---|---|
committer | Emiliano Ciavatta | 2021-07-28 08:17:39 +0000 |
commit | 520901864877b7be3115e4fa0ee6544c3de2476c (patch) | |
tree | a5a2784c1aad4002191eecefce5629363aed990f /.github/docker/Dockerfile | |
parent | fdb0bf97d2dec72adf08e5f2d7ad65b560d8cf8e (diff) |
Add github test workflow
Diffstat (limited to '.github/docker/Dockerfile')
-rw-r--r-- | .github/docker/Dockerfile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.github/docker/Dockerfile b/.github/docker/Dockerfile new file mode 100644 index 0000000..1f9f72d --- /dev/null +++ b/.github/docker/Dockerfile @@ -0,0 +1,18 @@ +FROM ubuntu:20.04 + +# Install tools and libraries +RUN apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt-get install -qq golang-1.14 pkg-config libpcap-dev libhyperscan-dev yarnpkg + +COPY ./ /caronte + +WORKDIR /caronte + +RUN ln -sf ../lib/go-1.14/bin/go /usr/bin/go && \ + go mod download && \ + go build && \ + cd frontend && \ + yarnpkg install && \ + yarnpkg build + +CMD go test -v -race -covermode=atomic |