Skip to content

Commit

Permalink
ci: bump dependencies (#404)
Browse files Browse the repository at this point in the history
* ci: bump dependencies

* add windows build for latest swift

* older swift run on older windows

* Codecov patch back to auto
  • Loading branch information
cbaker6 committed Sep 5, 2022
1 parent d94dcad commit a94ac8c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ coverage:
status:
patch:
default:
target: 72
target: auto
changes: false
project:
default:
Expand Down
52 changes: 36 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
env:
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
- name: Prepare codecov
uses: sersoft-gmbh/swift-coverage-action@v2
uses: sersoft-gmbh/swift-coverage-action@v3
id: coverage-files
with:
format: lcov
Expand Down Expand Up @@ -53,15 +53,15 @@ jobs:
env:
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
- name: Prepare codecov
uses: sersoft-gmbh/swift-coverage-action@v2
uses: sersoft-gmbh/swift-coverage-action@v3
id: coverage-files
with:
format: lcov
search-paths: ./DerivedData
env:
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
files: ${{join(fromJSON(steps.coverage-files.outputs.files), ',')}}
env_vars: MACOS
Expand All @@ -80,15 +80,15 @@ jobs:
env:
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
- name: Prepare codecov
uses: sersoft-gmbh/swift-coverage-action@v2
uses: sersoft-gmbh/swift-coverage-action@v3
id: coverage-files
with:
format: lcov
search-paths: ./DerivedData
env:
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
files: ${{join(fromJSON(steps.coverage-files.outputs.files), ',')}}
env_vars: TVOS
Expand All @@ -107,7 +107,7 @@ jobs:
env:
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
env_vars: WATCHOS
env:
Expand All @@ -130,15 +130,15 @@ jobs:
env:
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
- name: Prepare codecov
uses: sersoft-gmbh/swift-coverage-action@v2
uses: sersoft-gmbh/swift-coverage-action@v3
id: coverage-files
with:
format: lcov
search-paths: ./.build
env:
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
files: ${{join(fromJSON(steps.coverage-files.outputs.files), ',')}}
env_vars: SPM
Expand All @@ -156,13 +156,13 @@ jobs:
env:
DEVELOPER_DIR: ${{ env.CI_XCODE_VER }}
- name: Prepare codecov
uses: sersoft-gmbh/swift-coverage-action@v2
uses: sersoft-gmbh/swift-coverage-action@v3
id: coverage-files
with:
format: lcov
search-paths: ./DerivedData
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
files: ${{join(fromJSON(steps.coverage-files.outputs.files), ',')}}
env_vars: IOS_Earliest
Expand All @@ -174,7 +174,7 @@ jobs:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v3
- uses: sersoft-gmbh/SwiftyActions@v1
- uses: sersoft-gmbh/SwiftyActions@v2
with:
release-version: "5"
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -184,7 +184,7 @@ jobs:
run: |
llvm-cov export -format="lcov" .build/x86_64-unknown-linux-gnu/debug/ParseSwiftPackageTests.xctest -instr-profile .build/x86_64-unknown-linux-gnu/debug/codecov/default.profdata > info_linux.lcov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
env_vars: LINUX
fail_ci_if_error: true
Expand All @@ -193,15 +193,35 @@ jobs:
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- uses: MaxDesiatov/swift-windows-action@v1
- uses: compnerd/gha-setup-swift@v0.0.1
with:
swift-version: "5.5.1"
shell-action: swift test --enable-test-discovery --enable-code-coverage -v
branch: swift-5.5.1-release
tag: 5.5.1-RELEASE
- name: Build and Test
run: |
swift test --enable-test-discovery --enable-code-coverage -v
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
env_vars: WINDOWS
fail_ci_if_error: false

windows-latest:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: compnerd/gha-setup-swift@v0.0.1
with:
branch: swift-5.6.3-release
tag: 5.6.3-RELEASE
- name: Build
run: |
swift build -v
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
env_vars: WINDOWSLATEST
fail_ci_if_error: false

docs:
needs: xcode-build-watchos
Expand Down

0 comments on commit a94ac8c

Please sign in to comment.