@@ -2,28 +2,40 @@ name: test
2
2
on :
3
3
- pull_request
4
4
jobs :
5
- websocket-kit_xenial :
6
- container :
7
- image : vapor/swift:5.2-xenial
5
+ vapor-integration :
8
6
runs-on : ubuntu-latest
9
- steps :
10
- - uses : actions/checkout@v1
11
- - run : swift test --enable-test-discovery --sanitize=thread
12
- websocket-kit_bionic :
13
7
container :
14
- image : vapor/swift:5.2-bionic
15
- runs-on : ubuntu-latest
8
+ image : swift:5.6-focal
16
9
steps :
17
- - uses : actions/checkout@v1
18
- - run : swift test --enable-test-discovery --sanitize=thread
19
- vapor :
20
- container :
21
- image : vapor/swift:5.2
10
+ - name : Check out package
11
+ uses : actions/checkout@v3
12
+ with : { path: 'websocket-kit' }
13
+ - name : Check out Vapor
14
+ uses : actions/checkout@v3
15
+ with : { repository: 'vapor/vapor', path: 'vapor' }
16
+ - name : Use local package in Vapor
17
+ run : |
18
+ swift package --package-path vapor edit websocket-kit --path websocket-kit
19
+ - name : Run Vapor tests
20
+ run : swift test --package-path vapor
21
+
22
+ unit-tests :
23
+ uses : vapor/ci/.github/workflows/run-unit-tests.yml@reusable-workflows
24
+ with :
25
+ with_coverage : true
26
+ with_tsan : false
27
+ coverage_ignores : ' /Tests/'
28
+
29
+ api-breakage :
22
30
runs-on : ubuntu-latest
31
+ container :
32
+ image : swift:5.6-focal
23
33
steps :
24
- - run : git clone -b main https://github.com/vapor/vapor.git
25
- working-directory : ./
26
- - run : swift package edit websocket-kit --revision ${{ github.sha }}
27
- working-directory : ./vapor
28
- - run : swift test --enable-test-discovery --sanitize=thread
29
- working-directory : ./vapor
34
+ - name : Checkout
35
+ uses : actions/checkout@v3
36
+ with :
37
+ fetch-depth : 0
38
+ - name : Mark the workspace as safe
39
+ run : git config --global --add safe.directory ${GITHUB_WORKSPACE}
40
+ - name : API breaking changes
41
+ run : swift package diagnose-api-breaking-changes origin/main
0 commit comments