File tree 2 files changed +20
-4
lines changed
2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 11
11
swift-tests :
12
12
name : ' Swift Tests'
13
13
runs-on : ubuntu-latest
14
- container : swift:5.10-jammy
15
-
16
14
# Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest
17
15
defaults :
18
16
run :
23
21
- name : Checkout
24
22
uses : actions/checkout@v3
25
23
26
- # Run tests with Thread Sanitizer https://www.swift.org/blog/tsan-support-on-linux/
27
- - name : Run tests with Thread Sanitizer
24
+ # Set up Swift
25
+ - uses : swift-actions/setup-swift@v2
26
+ with :
27
+ swift-version : " 5.10"
28
+ - name : Get swift version
29
+ run : swift --version
30
+
31
+ # Run tests
32
+ - name : Run tests
28
33
run : swift test
29
34
- name : Coverage
30
35
run : |
Original file line number Diff line number Diff line change
1
+ SWIFT_DOCKER_IMAGE = swift:5.10-jammy
2
+ MOUNT_ROOT =$(shell pwd)
1
3
SWIFT_BIN_PATH = $(shell swift build --show-bin-path)
2
4
TEST_PACKAGE = $(SWIFT_BIN_PATH ) /SwiftSlsAdapterTestsPackageTests.xctest
3
5
BUILD_TEMP = .build/temp
4
6
7
+ docker_bash :
8
+ docker run \
9
+ -it \
10
+ --rm \
11
+ --volume " $( MOUNT_ROOT) :/src" \
12
+ --workdir " /src/" \
13
+ $(SWIFT_DOCKER_IMAGE ) \
14
+ /bin/bash
15
+
5
16
coverage :
6
17
llvm-cov export $(TEST_PACKAGE ) \
7
18
--instr-profile=$(SWIFT_BIN_PATH ) /codecov/default.profdata \
You can’t perform that action at this time.
0 commit comments