Skip to content

Commit

Permalink
Run integration tests on GitHub (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
vsuharnikov committed Oct 23, 2024
1 parent 7a5bb4e commit 39ef671
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/check-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,27 @@ jobs:
check-pr:
name: Check PR
runs-on: ubuntu-latest

services:
docker:
image: docker:latest
options: --privileged # Required for Docker-in-Docker (dind)
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 2375:2375
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
cache: 'sbt'
# - uses: sbt/setup-sbt@v1
- name: Install dependencies
# testcontainers uses nc:
# https://github.com/testcontainers/testcontainers-java/blob/main/core/src/main/java/org/testcontainers/containers/wait/internal/InternalCommandPortListeningCheck.java#L33
run: apt-get update && apt-get install -y netcat
- name: Check PR
run: sbt --batch "compile;test"
run: sbt --batch "docker;consensus-client-it/test"
# 10:59:19.028 WARN [ers-wait-0] o.t.c.w.i.InternalCommandPortListeningCheck - An exception while executing the internal check: Container.ExecResult(exitCode=137, stdout=, stderr=/bin/sh: 1: nc: not found

0 comments on commit 39ef671

Please sign in to comment.