@@ -17,24 +17,47 @@ jobs:
17
17
api-breakage :
18
18
if : ${{ !(github.event.pull_request.draft || false) }}
19
19
runs-on : ubuntu-latest
20
- container : swift:5.8- jammy
20
+ container : swift:jammy
21
21
steps :
22
22
- name : Check out code
23
- uses : actions/checkout@v3
23
+ uses : actions/checkout@v4
24
24
with : { 'fetch-depth': 0 }
25
- - name : Run API breakage check action
26
- uses : vapor/ci/.github/actions/ci-swift-check-api-breakage@reusable-workflows
25
+ - name : Run API breakage check
26
+ run : |
27
+ git config --global --add safe.directory "${GITHUB_WORKSPACE}"
28
+ swift package diagnose-api-breaking-changes origin/main
29
+
30
+ # gh-codeql:
31
+ # if: ${{ !(github.event.pull_request.draft || false) }}
32
+ # runs-on: ubuntu-latest
33
+ # permissions: { actions: write, contents: read, security-events: write }
34
+ # timeout-minutes: 30
35
+ # steps:
36
+ # - name: Install latest Swift toolchain
37
+
38
+ # with: { toolchain: latest }
39
+ # - name: Check out code
40
+ # uses: actions/checkout@v4
41
+ # - name: Fix Git configuration
42
+ # run: 'git config --global --add safe.directory "${GITHUB_WORKSPACE}"'
43
+ # - name: Initialize CodeQL
44
+ # uses: github/codeql-action/init@v3
45
+ # with: { languages: swift }
46
+ # - name: Perform build
47
+ # run: swift build
48
+ # - name: Run CodeQL analyze
49
+ # uses: github/codeql-action/analyze@v3
27
50
28
51
linux-unit :
29
52
if : ${{ !(github.event.pull_request.draft || false) }}
30
53
strategy :
31
54
fail-fast : false
32
55
matrix :
33
56
container :
34
- - swift:5.6 -focal
35
- - swift:5.7 -jammy
36
- - swift:5.8 -jammy
37
- - swiftlang/swift:nightly-5.9 -jammy
57
+ - swift:5.8 -focal
58
+ - swift:5.9 -jammy
59
+ - swift:5.10 -jammy
60
+ - swiftlang/swift:nightly-6.0 -jammy
38
61
- swiftlang/swift:nightly-main-jammy
39
62
redis :
40
63
- redis:6
@@ -47,22 +70,11 @@ jobs:
47
70
redis-2 :
48
71
image : ${{ matrix.redis }}
49
72
steps :
50
- - name : Save Redis version to env
51
- run : |
52
- echo REDIS_VERSION='${{ matrix.redis }}' >> $GITHUB_ENV
53
- - name : Display versions
54
- shell : bash
55
- run : |
56
- if [[ '${{ contains(matrix.container, 'nightly') }}' == 'true' ]]; then
57
- SWIFT_PLATFORM="$(source /etc/os-release && echo "${ID}${VERSION_ID}")" SWIFT_VERSION="$(cat /.swift_tag)"
58
- printf 'SWIFT_PLATFORM=%s\nSWIFT_VERSION=%s\n' "${SWIFT_PLATFORM}" "${SWIFT_VERSION}" >>"${GITHUB_ENV}"
59
- fi
60
- printf 'OS: %s\nTag: %s\nVersion:\n' "${SWIFT_PLATFORM}-${RUNNER_ARCH}" "${SWIFT_VERSION}" && swift --version
61
73
- name : Check out package
62
- uses : actions/checkout@v3
74
+ uses : actions/checkout@v4
63
75
- name : Run unit tests with Thread Sanitizer and coverage
64
76
run : swift test --sanitize=thread --enable-code-coverage
65
- - name : Submit coverage report to Codecov.io
66
- uses : vapor/swift-codecov-action@v0.2
77
+ - name : Upload coverage data
78
+ uses : vapor/swift-codecov-action@v0.3
67
79
with :
68
- cc_env_vars : ' SWIFT_VERSION,SWIFT_PLATFORM,RUNNER_OS,RUNNER_ARCH,REDIS_VERSION '
80
+ codecov_token : ${{ secrets.CODECOV_TOKEN }}
0 commit comments