File tree Expand file tree Collapse file tree 2 files changed +26
-6
lines changed
src/nativeInterop/cinterop Expand file tree Collapse file tree 2 files changed +26
-6
lines changed Original file line number Diff line number Diff line change @@ -11,18 +11,38 @@ jobs:
11
11
strategy :
12
12
fail-fast : false
13
13
matrix :
14
- os : [ ubuntu-latest, macos-latest ] # , windows-latest ]
14
+ os : [ ubuntu-latest ] # , macos-latest ] #, windows-latest ]
15
15
runs-on : ${{ matrix.os }}
16
+ # Service containers to run with `container-job`
17
+ services :
18
+ # Label used to access the service container
19
+ postgres :
20
+ # Docker Hub image
21
+ image : postgres
22
+ # Provide the password for postgres
23
+ env :
24
+ POSTGRES_PASSWORD : password
25
+ # Set health checks to wait until postgres has started
26
+ options : >-
27
+ --health-cmd pg_isready
28
+ --health-interval 10s
29
+ --health-timeout 5s
30
+ --health-retries 5
31
+ ports :
32
+ # Maps tcp port 5432 on service container to the host
33
+ - 5432:5432
16
34
17
35
steps :
18
36
- uses : actions/checkout@v3
19
37
- uses : gradle/wrapper-validation-action@v1
20
- - name : Start DB at start, because it takes some time
21
- run : docker run -e POSTGRES_PASSWORD=password -p 5432:5432 -d postgres
22
38
- run : brew install libpq
23
39
- uses : actions/setup-java@v3
24
40
with :
25
41
distribution : ' adopt'
26
42
java-version : 11
27
43
- run : ./gradlew assemble
28
- - run : ./gradlew test
44
+ - run : ./gradlew allTests
45
+ - uses : actions/upload-artifact@v3
46
+ with :
47
+ path : build/reports/tests
48
+ if : failure()
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ package = libpq
7
7
compilerOpts.osx = -I/opt/homebrew/opt/libpq/include
8
8
linkerOpts.osx = -L/opt/homebrew/opt/libpq/lib -lpq
9
9
10
- compilerOpts.linux = -I/opt/homebrew /opt/libpq/include
11
- linkerOpts.linux = -L/opt/homebrew /opt/libpq/lib -lpq
10
+ compilerOpts.linux = -I/home/linuxbrew/.linuxbrew /opt/libpq/include
11
+ linkerOpts.linux = -L/home/linuxbrew/.linuxbrew /opt/libpq/lib -lpq
You can’t perform that action at this time.
0 commit comments