File tree Expand file tree Collapse file tree 2 files changed +15
-12
lines changed Expand file tree Collapse file tree 2 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -23,11 +23,22 @@ jobs:
23
23
uses : actions/setup-go@v5
24
24
with :
25
25
check-latest : true
26
- go-version : " 1.22 "
26
+ go-version : " 1.24 "
27
27
- name : Start keppel
28
28
run : |
29
- make build/keppel
30
- RUNNER_TRACKING_ID="" && make run-api-for-conformance-test &
29
+ sudo apt-get update
30
+ sudo apt-get install --no-install-recommends -y postgresql-common
31
+ sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y
32
+ sudo pg_conftool /etc/postgresql-common/createcluster.conf set create_main_cluster false
33
+ sudo apt-get install --no-install-recommends -y postgresql-17
34
+ sudo chmod 777 -R /root .
35
+ export PATH=/usr/lib/postgresql/17/bin:$PATH
36
+ if realpath /root/go/pkg/mod/golang.org/toolchain@*/bin; then
37
+ export PATH=$(realpath /root/go/pkg/mod/golang.org/toolchain@*/bin):$PATH
38
+ fi
39
+
40
+ sudo -u postgres -E --preserve-env=PATH make build/keppel
41
+ sudo -u postgres -E --preserve-env=PATH env RUNNER_TRACKING_ID="" make run-api-for-conformance-test &
31
42
until curl -s http://localhost:8080/healthcheck; do sleep 0.1; done
32
43
IP=$(hostname -I | awk '{print $1}')
33
44
echo "SERVER_URL=http://${IP}:8080" >> $GITHUB_ENV
54
65
name : oci-test-results-${{ github.sha }}
55
66
path : .out/
56
67
if : always()
57
- services :
58
- postgres :
59
- image : postgres:17
60
- env :
61
- POSTGRES_PASSWORD : mysecretpassword
62
- ports :
63
- - 54321:5432
64
- options : --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
Original file line number Diff line number Diff line change 1
1
export KEPPEL_API_PUBLIC_FQDN=localhost
2
2
export KEPPEL_ISSUER_KEY=./conformance-test/privkey.pem
3
3
export KEPPEL_DB_CONNECTION_OPTIONS=sslmode=disable
4
- export KEPPEL_DB_PASSWORD=mysecretpassword
4
+ export KEPPEL_DB_PASSWORD=
5
5
export KEPPEL_DB_PORT=54321
6
6
export KEPPEL_USERNAME=johndoe
7
7
export KEPPEL_PASSWORD=SuperSecret
You can’t perform that action at this time.
0 commit comments