-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #632 from linode/dev
v0.33.0
- Loading branch information
Showing
17 changed files
with
206 additions
and
109 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
name: Nightly Smoke Tests | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
workflow_dispatch: | ||
inputs: | ||
sha: | ||
description: 'Commit SHA to test' | ||
required: false | ||
default: '' | ||
type: string | ||
|
||
jobs: | ||
smoke_tests: | ||
if: github.repository == 'linode/ansible_linode' || github.event_name == 'workflow_dispatch' | ||
runs-on: ubuntu-latest | ||
env: | ||
EXIT_STATUS: 0 | ||
defaults: | ||
run: | ||
working-directory: .ansible/collections/ansible_collections/linode/cloud | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
with: | ||
path: .ansible/collections/ansible_collections/linode/cloud | ||
fetch-depth: 0 | ||
submodules: 'recursive' | ||
|
||
- name: Update packages | ||
run: sudo apt-get update -y | ||
|
||
- name: Setup Python 3 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ inputs.run-eol-python-version == 'true' && env.EOL_PYTHON_VERSION || inputs.python-version || env.DEFAULT_PYTHON_VERSION }} | ||
|
||
- name: Install dependencies | ||
run: make deps | ||
|
||
- name: Install ansible dependencies | ||
run: ansible-galaxy collection install amazon.aws:==6.0.1 | ||
|
||
- name: Install Collection | ||
run: make install | ||
|
||
- name: Replace Existing Keys | ||
run: rm -rf ~/.ansible/test && mkdir -p ~/.ansible/test && ssh-keygen -m PEM -q -t rsa -N '' -f ~/.ansible/test/id_rsa | ||
|
||
- name: Run smoke tests | ||
id: smoke_tests | ||
run: | | ||
make smoketest | ||
env: | ||
LINODE_API_TOKEN: ${{ secrets.DX_LINODE_TOKEN }} | ||
|
||
- name: Notify Slack | ||
if: (success() || failure()) && github.repository == 'linode/ansible_linode' | ||
uses: slackapi/[email protected] | ||
with: | ||
method: chat.postMessage | ||
token: ${{ secrets.SLACK_BOT_TOKEN }} | ||
payload: | | ||
channel: ${{ secrets.SLACK_CHANNEL_ID }} | ||
blocks: | ||
- type: section | ||
text: | ||
type: mrkdwn | ||
text: ":rocket: *${{ github.workflow }} Completed in: ${{ github.repository }}* :white_check_mark:" | ||
- type: divider | ||
- type: section | ||
fields: | ||
- type: mrkdwn | ||
text: "*Build Result:*\n${{ steps.smoke_tests.outcome == 'success' && ':large_green_circle: Build Passed' || ':red_circle: Build Failed' }}" | ||
- type: mrkdwn | ||
text: "*Branch:*\n`${{ github.ref_name }}`" | ||
- type: section | ||
fields: | ||
- type: mrkdwn | ||
text: "*Commit Hash:*\n<${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>" | ||
- type: mrkdwn | ||
text: "*Run URL:*\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Run Details>" | ||
- type: divider | ||
- type: context | ||
elements: | ||
- type: mrkdwn | ||
text: "Triggered by: :bust_in_silhouette: `${{ github.actor }}`" |
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 |
---|---|---|
|
@@ -11,32 +11,14 @@ jobs: | |
steps: | ||
- name: Notify Slack - Main Message | ||
id: main_message | ||
uses: slackapi/slack-github-action@v1.27.0 | ||
uses: slackapi/slack-github-action@v2.0.0 | ||
with: | ||
channel-id: ${{ secrets.DEV_DX_SLACK_CHANNEL_ID }} | ||
method: chat.postMessage | ||
token: ${{ secrets.SLACK_BOT_TOKEN }} | ||
payload: | | ||
{ | ||
"blocks": [ | ||
{ | ||
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": "*New Release Published: _ansible_linode_ - ${{ github.event.release.tag_name }} is now live!* :tada:" | ||
} | ||
} | ||
] | ||
} | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | ||
|
||
- name: Notify Slack - Threaded Release Notes | ||
uses: slackapi/[email protected] | ||
with: | ||
channel-id: ${{ secrets.DEV_DX_SLACK_CHANNEL_ID }} | ||
payload: | | ||
{ | ||
"thread_ts": "${{ steps.main_message.outputs.ts }}", | ||
"text": "*<${{ github.event.release.html_url }}| ${{ github.event.release.tag_name }} Release notes>*" | ||
} | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | ||
channel: ${{ secrets.DEV_DX_SLACK_CHANNEL_ID }} | ||
blocks: | ||
- type: section | ||
text: | ||
type: mrkdwn | ||
text: "*New Release Published: _ansible_linode_ <${{ github.event.release.html_url }}|${{ github.event.release.tag_name }}> is now live!* :tada:" |
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
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
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.