File tree 1 file changed +24
-0
lines changed
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 16
16
name : Test
17
17
runs-on : ubuntu-latest
18
18
19
+ services :
20
+ postgres :
21
+ image : postgres:12-alpine
22
+ env :
23
+ POSTGRES_USER : postgres
24
+ POSTGRES_PASSWORD : postgres
25
+ POSTGRES_DB : sandbox
26
+ ports :
27
+ - 5433:5432
28
+ options : >-
29
+ --health-cmd pg_isready
30
+ --health-interval 10s
31
+ --health-timeout 5s
32
+ --health-retries 5
33
+
19
34
steps :
20
35
- name : Checkout
21
36
uses : actions/checkout@v2
25
40
with :
26
41
go-version : 1.17
27
42
43
+ - name : Install golang-migrate
44
+ run : |
45
+ curl -L https://github.com/golang-migrate/migrate/releases/download/v4.14.1/migrate.linux-amd64.tar.gz | tar xvz
46
+ sudo mv migrate.linux-amd64 /usr/bin/migrate
47
+ which migrate
48
+
49
+ - name : Run migrations
50
+ run : make migrateup
51
+
28
52
- name : Test
29
53
run : go test -v ./...
You can’t perform that action at this time.
0 commit comments