diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 94d907b..8c5afb4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,13 +15,15 @@ jobs: api-breakage: if: ${{ !(github.event.pull_request.draft || false) }} runs-on: ubuntu-latest - container: swift:5.8-jammy + container: swift:5.10-jammy steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: { 'fetch-depth': 0 } - - name: Run API breakage check action - uses: vapor/ci/.github/actions/ci-swift-check-api-breakage@reusable-workflows + - name: Run API breakage check + run: | + git config --global --add safe.directory "${GITHUB_WORKSPACE}" + swift package ${PACKAGE_ROOT} diagnose-api-breaking-changes origin/main linux-unit: if: ${{ !(github.event.pull_request.draft || false) }} @@ -29,10 +31,10 @@ jobs: fail-fast: false matrix: container: - - swift:5.6-focal - - swift:5.7-jammy - swift:5.8-jammy - - swiftlang/swift:nightly-5.9-jammy + - swift:5.9-jammy + - swift:5.10-noble + - swift:6.0-noble - swiftlang/swift:nightly-main-jammy redis: - redis:6 @@ -44,23 +46,11 @@ jobs: image: ${{ matrix.redis }} ports: ["6379:6379"] steps: - - name: Save Redis version to env - run: | - echo REDIS_VERSION='${{ matrix.redis }}' >> $GITHUB_ENV - - name: Display versions - shell: bash - run: | - if [[ '${{ contains(matrix.container, 'nightly') }}' == 'true' ]]; then - SWIFT_PLATFORM="$(source /etc/os-release && echo "${ID}${VERSION_ID}")" SWIFT_VERSION="$(cat /.swift_tag)" - printf 'SWIFT_PLATFORM=%s\nSWIFT_VERSION=%s\n' "${SWIFT_PLATFORM}" "${SWIFT_VERSION}" >>"${GITHUB_ENV}" - fi - printf 'OS: %s\nTag: %s\nVersion:\n' "${SWIFT_PLATFORM}-${RUNNER_ARCH}" "${SWIFT_VERSION}" && swift --version - name: Check out package - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run unit tests with Thread Sanitizer and coverage run: swift test --sanitize=thread --enable-code-coverage - name: Submit coverage report to Codecov.io - uses: vapor/swift-codecov-action@v0.2 + uses: vapor/swift-codecov-action@v0.3 with: - cc_env_vars: 'SWIFT_VERSION,SWIFT_PLATFORM,RUNNER_OS,RUNNER_ARCH,REDIS_VERSION' - cc_fail_ci_if_error: false + codecov_token: ${{ secrets.CODECOV_TOKEN || '' }}