-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial setup for CI #224
Merged
Merged
Initial setup for CI #224
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -1,92 +1,20 @@ | ||
name: Continuous Integration | ||
on: | ||
push: | ||
branches: [main] | ||
branches: [ "feature/next-gen" ] | ||
pull_request: | ||
branches: [ "feature/next-gen" ] | ||
|
||
jobs: | ||
full-build: | ||
runs-on: macos-12 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Full Build | ||
run: ./fullbuild.sh | ||
- name: Smoke Test | ||
run: ./smoketest.sh | ||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
xcframework: | ||
runs-on: macos-12 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Print Swift version | ||
run: swift --version | ||
- name: Build xcframework | ||
working-directory: ./SplunkRumWorkspace/SplunkRum | ||
run: ./build_binaries.sh | ||
- name: Upload xcframework | ||
uses: actions/[email protected] | ||
with: | ||
name: SplunkOtel.xcframework | ||
path: ./SplunkRumWorkspace/SplunkRum/xcframeworks/SplunkOtel.xcframework | ||
saucelabs-prepare: | ||
runs-on: macOS-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.8' | ||
- name: Build for Sauce Labs | ||
run: | | ||
BUILD_FOLDER="work/splunk-otel-ios/splunk-otel-ios/SauceLabsTests" | ||
BUILD_PATH="Build/Products/Debug-iphonesimulator" | ||
xcodebuild -showsdks | ||
|
||
xcodebuild -workspace SplunkRumWorkspace/SplunkRumWorkspace.xcworkspace \ | ||
-scheme SauceLabsTestApp \ | ||
-configuration Debug \ | ||
-sdk iphonesimulator \ | ||
-derivedDataPath SauceLabsTests | ||
zip ${GITHUB_WORKSPACE}/SauceLabsTestApp.zip $(find ~/$BUILD_FOLDER/$BUILD_PATH/SauceLabsTestApp.app -type f) | ||
- name: Upload test app to Sauce Labs | ||
id: sl-upload | ||
run: | | ||
cd /Users/runner/work/splunk-otel-ios/splunk-otel-ios/ | ||
item_id=$(curl -u "${{secrets.SAUCELABS_USER}}:${{secrets.SAUCELABS_KEY}}" --location \ | ||
--request POST 'https://api.us-west-1.saucelabs.com/v1/storage/upload' \ | ||
--form 'payload=@"SauceLabsTestApp.zip"' \ | ||
--form 'name="SauceLabsTestApp.zip"' \ | ||
--form 'description="'"$GITHUB_SHA"'"' | jq -r .item.id) | ||
echo "sl_file_id=$item_id" >> $GITHUB_OUTPUT | ||
outputs: | ||
sl_file_id: ${{ steps.sl-upload.outputs.sl_file_id }} | ||
saucelabs-tests: | ||
runs-on: macOS-latest | ||
needs: saucelabs-prepare | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ['14', '15', '16'] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.8' | ||
- name: Run Sauce Labs test cases | ||
working-directory: SplunkRumWorkspace | ||
env: | ||
SAUCELABS_USER: ${{ secrets.SAUCELABS_USER }} | ||
SAUCELABS_KEY: ${{ secrets.SAUCELABS_KEY }} | ||
run: | | ||
cd SauceLabsTestApp/ | ||
python3 -m pip install Appium-Python-Client==2.11.1 | ||
python3 sl_tests.py ${{ matrix.os }} ${{ needs.saucelabs-prepare.outputs.sl_file_id }} | ||
# build: | ||
# runs-on: macos-14 | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v4 | ||
# - name: Build | ||
# run: ./Tools/build_frameworks.sh | ||
# - name: Upload coverage to Codecov | ||
# uses: codecov/[email protected] | ||
check_links: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
|
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we know that jq will be installed on the build machine, or if not do we have some requirements document that lists it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't know. The saucelabs tests are currently failing in the main branch, and we need to procure a team account and fix this pipeline. Hence, for now this is removed in feature/next-gen branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And now I notice it was a removal, not an addition... thanks.