-
Notifications
You must be signed in to change notification settings - Fork 87
new: Adding cross repo testing workflow for Release #378
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
ykim-akamai
merged 20 commits into
linode:dev
from
ykim-akamai:new/release_cross_testing_workflow
Mar 12, 2024
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
52489d0
move test upload logic to git submodule, and use it in e2e workflow
ykim-akamai c172704
update script folder name
ykim-akamai 90572c1
Merge pull request #3 from ykim-1/test/report_uploader_submodule
ykim-akamai c3b464f
Merge remote-tracking branch 'origin/dev' into dev
ykim-akamai 19b23a6
Merge remote-tracking branch 'origin/dev' into dev
ykim-akamai b71ba16
Test release-cross-repo-test.yml
ykim-akamai 1ec0c54
trial 2
ykim-akamai 7268ae7
3
ykim-akamai 4334d00
switch order of python build
ykim-akamai 1f0b014
5
ykim-akamai 0648b8f
fix syntax
ykim-akamai 2b8b027
update python version
ykim-akamai cb8fd4d
6
ykim-akamai 2adf4b0
7
ykim-akamai 6487d5e
8
ykim-akamai ed49613
Final clean up and fix make dep installs
ykim-akamai bd37e19
remove test_scripts
ykim-akamai c39f623
change job name
ykim-akamai 71bc713
Pr comments
ykim-akamai ed8c049
Pr comments
ykim-akamai 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,61 @@ | ||
| name: Release Ansible cross repository test | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| types: [opened] # Workflow will only be executed when PR is opened to main branch | ||
| workflow_dispatch: # Manual trigger | ||
|
|
||
|
|
||
| jobs: | ||
| ansible_integration_test: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout linode_api4 repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: update packages | ||
| run: sudo apt-get update -y | ||
|
|
||
| - name: install make | ||
| run: sudo apt-get install -y build-essential | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: '3.10' | ||
|
|
||
| - name: Install linode_api4 | ||
| run: make install | ||
|
|
||
| - name: checkout repo | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| repository: linode/ansible_linode | ||
| path: .ansible/collections/ansible_collections/linode/cloud | ||
|
|
||
| - name: install dependencies | ||
| run: | | ||
| cd .ansible/collections/ansible_collections/linode/cloud | ||
| pip install -r requirements.txt -r requirements-dev.txt --upgrade-strategy only-if-needed | ||
|
|
||
| - name: install ansible dependencies | ||
| run: ansible-galaxy collection install amazon.aws:==6.0.1 | ||
|
|
||
| - name: install collection | ||
| run: | | ||
| cd .ansible/collections/ansible_collections/linode/cloud | ||
| make install | ||
|
|
||
| - name: replace existing keys | ||
| run: | | ||
| cd .ansible/collections/ansible_collections/linode/cloud | ||
| rm -rf ~/.ansible/test && mkdir -p ~/.ansible/test && ssh-keygen -m PEM -q -t rsa -N '' -f ~/.ansible/test/id_rsa | ||
|
|
||
| - name: run tests | ||
| run: | | ||
| cd .ansible/collections/ansible_collections/linode/cloud | ||
| make testall | ||
| env: | ||
| LINODE_API_TOKEN: ${{ secrets.LINODE_TOKEN }} | ||
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.
Just for some added confidence, would it make sense to install
linode_api4after installing the Ansible Collection deps?Uh oh!
There was an error while loading. Please reload this page.
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.
I verified that the one built is being used in my local environment
I think doing it after might be complicated considering it will be overwritten