File tree Expand file tree Collapse file tree 2 files changed +19
-7
lines changed Expand file tree Collapse file tree 2 files changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -51,17 +51,20 @@ jobs:
51
51
key : " spi-debug-build-${{ runner.os }}-${{ github.event.after }}"
52
52
restore-keys : " spi-debug-build-${{ runner.os }}-"
53
53
54
- - name : Run tests
55
- run : cp .env.testing.template .env.testing && make test
56
- env :
57
- COLLECTION_SIGNING_PRIVATE_KEY : ${{ secrets.COLLECTION_SIGNING_PRIVATE_KEY }}
54
+ - name : Build tests
55
+ run : cp .env.testing.template .env.testing && make build-tests
58
56
59
57
- name : Cache .build
60
58
if : steps.restore-cache.outputs.cache-hit != 'true'
61
59
uses : actions/cache/save@v4
62
60
with :
63
61
path : .build
64
62
key : " spi-debug-build-${{ runner.os }}-${{ github.event.after }}"
63
+
64
+ - name : Run tests
65
+ run : cp .env.testing.template .env.testing && make run-tests
66
+ env :
67
+ COLLECTION_SIGNING_PRIVATE_KEY : ${{ secrets.COLLECTION_SIGNING_PRIVATE_KEY }}
65
68
66
69
services :
67
70
spi_test_0 :
Original file line number Diff line number Diff line change @@ -30,16 +30,25 @@ endif
30
30
build :
31
31
swift build --disable-automatic-resolution --enable-experimental-prebuilts
32
32
33
-
34
33
run :
35
34
swift run
36
35
37
- test : xcbeautify
36
+ build-tests : xcbeautify
37
+ set -o pipefail \
38
+ && swift build --build-tests \
39
+ --disable-automatic-resolution \
40
+ --enable-experimental-prebuilts \
41
+ 2>&1 | xcbeautify --renderer github-actions
42
+
43
+ run-tests : xcbeautify
38
44
set -o pipefail \
39
- && swift test --disable-automatic-resolution \
45
+ && swift test --skip-build \
46
+ --disable-automatic-resolution \
40
47
--enable-experimental-prebuilts \
41
48
2>&1 | xcbeautify --renderer github-actions
42
49
50
+ test : build-tests run-tests
51
+
43
52
test-query-performance : xcbeautify
44
53
set -o pipefail \
45
54
&& env RUN_QUERY_PERFORMANCE_TESTS=true \
You can’t perform that action at this time.
0 commit comments