@@ -37,10 +37,13 @@ jobs:
37
37
- name : Checkout code
38
38
uses : actions/checkout@v4
39
39
with : { 'fetch-depth': 0 }
40
- - name : Install unzip
41
- run : apt-get update && apt-get install -y unzip
42
- - name : Run tests
43
- run : cp .env.testing.template .env.testing && swift test --filter AnalyzerTests
40
+ - name : Install postgres
41
+ run : |
42
+ apt-get update && apt install -y postgresql-common
43
+ echo y | /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh
44
+ which psql
45
+ which docker
46
+ sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh
44
47
env :
45
48
COLLECTION_SIGNING_PRIVATE_KEY : ${{ secrets.COLLECTION_SIGNING_PRIVATE_KEY }}
46
49
DATABASEPOOL_SIZE : 8
@@ -151,47 +154,3 @@ jobs:
151
154
--health-interval 10s
152
155
--health-timeout 5s
153
156
--health-retries 5
154
-
155
- release-build-linux :
156
- name : Release build
157
- runs-on : ubuntu-latest
158
- container :
159
- image : registry.gitlab.com/finestructure/spi-base:46fc194706b255239d764c87f05f825ad9f98303
160
- options : --privileged
161
- steps :
162
- - name : GH Runner bug workaround
163
- run : sysctl -w vm.mmap_rnd_bits=28
164
- - name : Checkout code
165
- uses : actions/checkout@v4
166
- with : { 'fetch-depth': 0 }
167
- - name : Build release
168
- run : swift build -c release --static-swift-stdlib -Xlinker -ljemalloc
169
-
170
- # test-macos:
171
- # name: Test macOS
172
- # runs-on: macOS-latest
173
- # services:
174
- # postgres:
175
- # image: postgres:16-alpine
176
- # env:
177
- # POSTGRES_DB: spi_dev
178
- # POSTGRES_USER: spi_dev
179
- # POSTGRES_PASSWORD: xxx
180
- # ports:
181
- # - 5432:5432
182
- # options: >-
183
- # --health-cmd pg_isready
184
- # --health-interval 10s
185
- # --health-timeout 5s
186
- # --health-retries 5
187
- # steps:
188
- # - uses: actions/checkout@v4
189
- # - name: Select Xcode 11.4
190
- # run: sudo xcode-select -s /Applications/Xcode_11.4.app
191
- # - name: Log Xcode version
192
- # run: /usr/bin/xcodebuild -version
193
- # - name: Run tests
194
- # run: make test
195
- # env:
196
- # DATABASE_HOST: postgres
197
- # DATABASE_PORT: 5432
0 commit comments