-
Notifications
You must be signed in to change notification settings - Fork 32
ci: build TAs with current version of UCC #1591
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
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
34be536
ci: build TAs with current version of UCC
vtsvetkov-splunk 2bc1057
fr fr fr 🏗️
vtsvetkov-splunk e7d1d58
run on branch 🌳
vtsvetkov-splunk a0568b4
🤷♂️
vtsvetkov-splunk 87ff8fe
🤷♂️🤷♂️🤷♂️
vtsvetkov-splunk b13ee92
🤔
vtsvetkov-splunk 8f52973
👍
vtsvetkov-splunk 56b18b6
🚧
vtsvetkov-splunk 798a194
🤨
vtsvetkov-splunk 37677bb
🙄
vtsvetkov-splunk 63c9bf7
😬
vtsvetkov-splunk 3237652
🫣
vtsvetkov-splunk 812c903
🫡
vtsvetkov-splunk deb66fc
😑
vtsvetkov-splunk 8d17657
🎉
vtsvetkov-splunk e845a00
🧹
vtsvetkov-splunk 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 hidden or 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,113 @@ | ||
name: TAs Regression Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
- main | ||
pull_request: | ||
branches: | ||
- "**" | ||
workflow_dispatch: | ||
inputs: | ||
target_repo: | ||
description: "Target repository" | ||
required: false | ||
default: "" | ||
target_branch: | ||
description: "Target branch" | ||
required: false | ||
default: "main" | ||
|
||
jobs: | ||
build-ucc: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout UCC Framework Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
path: UCC | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.7" | ||
|
||
- name: Install Poetry | ||
run: pip install poetry==1.5.1 | ||
|
||
- name: Build UCC Framework Package | ||
working-directory: UCC | ||
run: | | ||
poetry install | ||
poetry build | ||
|
||
- name: Upload UCC Artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ucc-package-whl | ||
path: UCC/dist/*.whl | ||
|
||
test-addons: | ||
needs: build-ucc | ||
strategy: | ||
matrix: | ||
target_repo: | ||
- splunk/splunk-add-on-for-amazon-web-services | ||
- splunk/splunk-add-on-for-google-cloud-platform | ||
- splunk/splunk-add-on-for-google-workspace | ||
- splunk/splunk-add-on-for-microsoft-cloud-services | ||
- splunk/splunk-add-on-for-microsoft-office-365 | ||
- splunk/splunk-add-on-for-salesforce | ||
- splunk/splunk-add-on-for-servicenow | ||
- splunk/splunk-add-on-for-mysql | ||
continue-on-error: true | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout Target Add-on Repository | ||
if: ${{ github.event_name == 'push' || github.event.inputs.target_repo == '' }} | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: ${{ matrix.target_repo }} | ||
path: TA | ||
token: ${{ secrets.GH_TOKEN_ADMIN }} | ||
|
||
- name: Checkout Target Add-on Repository (manual) | ||
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.target_repo != '' }} | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: ${{ github.event.inputs.target_repo }} | ||
ref: ${{ github.event.inputs.target_branch }} | ||
path: TA | ||
token: ${{ secrets.GH_TOKEN_ADMIN }} | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.7" | ||
|
||
- name: Install Poetry | ||
run: pip install poetry==1.5.1 | ||
|
||
- name: Download UCC Artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: ucc-package-whl | ||
path: UCC | ||
|
||
- name: Install Dependencies in Target Add-on | ||
working-directory: TA | ||
run: | | ||
UCC_WHL=$(ls ../UCC/*.whl) | ||
# https://github.com/python-poetry/poetry/issues/7491#issuecomment-1423763839 | ||
git config --global --add url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf https://github.com | ||
git config --global --add url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf ssh://[email protected] | ||
poetry add ../UCC/$UCC_WHL --group dev | ||
poetry add splunktaucclib@latest | ||
mkdir -p package/lib | ||
poetry export --without-hashes -o package/lib/requirements.txt | ||
|
||
- name: Run ucc-gen build in Target Add-on | ||
working-directory: TA | ||
run: | | ||
poetry run ucc-gen build |
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.
Uh oh!
There was an error while loading. Please reload this page.