We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c45c0ee commit 7fd677aCopy full SHA for 7fd677a
.github/workflows/build.yml
@@ -9,6 +9,16 @@ jobs:
9
build:
10
name: Build
11
runs-on: ubuntu-latest
12
+ services:
13
+ postgres:
14
+ image: postgres:13
15
+ env:
16
+ POSTGRES_USER: postgres
17
+ POSTGRES_PASSWORD: postgres
18
+ POSTGRES_DB: mydb
19
+ ports:
20
+ - 5432:5432
21
+ options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
22
steps:
23
- uses: actions/checkout@v2
24
with:
@@ -17,12 +27,6 @@ jobs:
27
uses: actions/setup-java@v1
28
29
java-version: 8
- - name: Set up postgres
- uses: harmon758/postgresql-action@v1
- with:
- postgresql version: '11'
- - name: Create DB
25
- run: psql -c 'create database mydb;' -U postgres
26
30
- name: Cache SonarCloud packages
31
uses: actions/cache@v1
32
0 commit comments