File tree 1 file changed +37
-0
lines changed
1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 9
9
IMAGE_NAME : ${{ github.repository }}
10
10
11
11
jobs :
12
+ test_api :
13
+ runs-on : ubuntu-latest
14
+ permissions :
15
+ contents : read
16
+ packages : write
17
+ # This is used to complete the identity challenge
18
+ # with sigstore/fulcio when running outside of PRs.
19
+ id-token : write
20
+
21
+ services :
22
+ postgres :
23
+ image : postgres
24
+ env :
25
+ POSTGRES_USER : test
26
+ POSTGRES_PASSWORD : test
27
+ POSTGRES_DATABASE : test
28
+ POSTGRES_HOST : 127.0.0.1
29
+ options : >-
30
+ --health-cmd pg_isready
31
+ --health-interval 10s
32
+ --health-timeout 5s
33
+ --health-retries 5
34
+ ports :
35
+ - 5432:5432
36
+ steps :
37
+ - name : Checkout repository
38
+ uses : actions/checkout@v3
39
+
40
+ - name : Use Node.js
41
+ uses : actions/setup-node@v4
42
+ with :
43
+ node-version : ' 20.x'
44
+
45
+ - name : Run integration tests
46
+ run : npm run test:integration
47
+
12
48
build_api :
13
49
runs-on : ubuntu-latest
50
+ needs : test_api
14
51
permissions :
15
52
contents : read
16
53
packages : write
You can’t perform that action at this time.
0 commit comments