File tree Expand file tree Collapse file tree 1 file changed +5
-36
lines changed Expand file tree Collapse file tree 1 file changed +5
-36
lines changed Original file line number Diff line number Diff line change 55 name : Test on Ubuntu
66 runs-on : ubuntu-22.04
77
8- services :
9- # label used to access the service container
10- postgis :
11- # docker hub image
12- image : postgis/postgis:12-3.0-alpine
13- env :
14- # set the master password for the instance
15- POSTGRES_PASSWORD : postgres
16- ports :
17- - 5432:5432
18- # Set health checks to wait until postgres has started
19- options : >-
20- --health-cmd pg_isready
21- --health-interval 10s
22- --health-timeout 5s
23- --health-retries 5
24-
25- redis :
26- image : redis
27- ports :
28- - 6379:6379
29- options : --entrypoint redis-server
30-
318 steps :
329 - name : Check out code
3310 uses : actions/checkout@v4
4522 echo ${HOME}
4623 echo ${GITHUB_WORKSPACE}
4724
48- - name : Load Postgres test data
49- env :
50- TEST_DATA_URL : https://raw.githubusercontent.com/go-spatial/tegola-testdata/master/tegola.dump
51- TEST_DATA : tegola.backup
52- PGUSER : postgres
53- PGHOST : localhost
54- PGDATABASE : postgres
55- PGPASSWORD : postgres
56- run : |
57- curl ${TEST_DATA_URL} > ${TEST_DATA}
58- pg_restore -d postgres -C ${TEST_DATA}
59- psql -c "CREATE ROLE tegola_no_access LOGIN PASSWORD 'postgres'"
60- rm ${TEST_DATA}
25+ - name : Setup test environment
26+ run : docker compose up -d
6127
6228 - name : Postgres Debug
6329 env :
10874 go generate ./...
10975 popd
11076
77+ - name : Tear down test environment
78+ run : docker compose down
79+
11180 govulncheck :
11281 name : Run govulncheck
11382 runs-on : ubuntu-22.04
You can’t perform that action at this time.
0 commit comments