File tree Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,31 @@ name: Test
8
8
jobs :
9
9
test :
10
10
runs-on : ubuntu-latest
11
+ strategy :
12
+ matrix :
13
+ postgres-version :
14
+ - { tag: "14", sha: "sha256:bbcaba1d74865ee6d6318b5e297d0df73d1f6b6d995cd892b60a2cf1440b716a" }
15
+ - { tag: "15", sha: "sha256:f57a3bdbf044f0b213fdc99f35a0d21c401608bf41f063176ec00c51df9655f7" }
16
+ - { tag: "16", sha: "sha256:47053cd4ee3f096afc744e53e3280de7b29b3670d2f2196c2acc0c6470923c99" }
17
+ services :
18
+ postgres :
19
+ image : postgres:${{ matrix.postgres-version.tag }}@${{ matrix.postgres-version.sha }}
20
+ ports :
21
+ - 5432:5432
22
+ env :
23
+ POSTGRES_PASSWORD : postgres
24
+ POSTGRES_DB : mission-control
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
11
31
steps :
12
32
- name : Install Go
13
33
uses : buildjet/setup-go@v5
14
34
with :
15
- go-version : 1.22 .x
35
+ go-version : 1.24 .x
16
36
- name : Checkout code
17
37
uses : actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
18
38
- uses : buildjet/cache@v4
26
46
cache-
27
47
- name : Test
28
48
run : make test
49
+ env :
50
+ DUTY_DB_URL : postgres://postgres:postgres@localhost:5432/mission-control?sslmode=disable
29
51
30
52
migrate :
31
53
runs-on : ubuntu-latest
41
63
- name : Install Go
42
64
uses : buildjet/setup-go@v5
43
65
with :
44
- go-version : 1.22 .x
66
+ go-version : 1.24 .x
45
67
- name : Check out main branch
46
68
uses : actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
47
69
with :
You can’t perform that action at this time.
0 commit comments