-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 1.14 KB
/
check-pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Check PR
on:
pull_request:
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: sudo apt-get update && sudo apt-get install -y netcat
- name: Check PR
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