-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI for sigv4 signers in java and ios (#357)
- Loading branch information
1 parent
2ba03dc
commit 0a065f4
Showing
2 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: SigV4 Java Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- sigv4-signing/java/** | ||
- .github/workflows/sigv4-java.yaml | ||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- sigv4-signing/java/** | ||
- .github/workflows/sigv4-java.yaml | ||
|
||
jobs: | ||
run-unit-tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
java-version: ['8', '11', '17', '21'] | ||
name: Build and run unit tests (Java ${{ matrix.java-version }}) | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Set up JDK ${{ matrix.java-version }} | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: ${{ matrix.java-version }} | ||
distribution: corretto | ||
- name: Build with Maven | ||
run: mvn -B clean verify --file sigv4-signing/java/SigV4Signer.java/pom.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: SigV4 Swift Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- sigv4-signing/swift/** | ||
- .github/workflows/sigv4-swift.yaml | ||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- sigv4-signing/swift/** | ||
- .github/workflows/sigv4-swift.yaml | ||
|
||
jobs: | ||
run-unit-tests: | ||
strategy: | ||
matrix: | ||
config: | ||
- mac_ver: '13' | ||
xc_ver: '14.3' | ||
- mac_ver: '13' | ||
xc_ver: '15.0' | ||
|
||
name: 'Build and run unit tests (MacOS ${{ matrix.config.mac_ver }}, XCode ${{ matrix.config.xc_ver }})' | ||
runs-on: 'macos-${{ matrix.config.mac_ver }}' | ||
steps: | ||
- name: Git - Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup - Xcode | ||
run: >- | ||
sudo xcode-select -s /Applications/Xcode_${{ matrix.config.xc_ver }}.app | ||
- name: Install dependencies | ||
run: | | ||
cd sigv4-signing/swift/sigv4 | ||
pod setup | ||
pod install --repo-update | ||
- name: XCode Test | ||
run: set -o pipefail && xcodebuild clean test -workspace sigv4-signing/swift/sigv4/sigv4.xcworkspace -scheme sigv4 -resultBundlePath TestResults -enableCodeCoverage YES | xcpretty | ||
- name: Publish results | ||
uses: kishikawakatsumi/xcresulttool@v1 | ||
with: | ||
title: 'Test results (MacOS ${{ matrix.config.mac_ver }}, XCode ${{ matrix.config.xc_ver }})' | ||
path: TestResults.xcresult | ||
upload-bundles: never | ||
if: success() || failure() |