-
Notifications
You must be signed in to change notification settings - Fork 10
ci: extend installer testing #260
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
6 commits
Select commit
Hold shift + click to select a range
55d4c1a
fix: pass the requested version to the installer's cargo fallback
TomasArrachea 7d42744
release: route installer.sh as a release asset
TomasArrachea 3b00de2
ci: exercise installer opt-out flags and run on release workflow changes
TomasArrachea 34666d0
ci: smoke-test the published installer after each release
TomasArrachea a2595df
ci: move the release smoke test into its own workflow
TomasArrachea 0a0e442
ci(smoke): use workflow calls to invoke smoke tests
bitwalker 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
Some comments aren't visible on the classic Files Changed page.
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
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
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
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,49 @@ | ||
| # Install midenup and a toolchain the way the README tells users to, from the published | ||
| # release assets and the live channel manifest. | ||
| name: smoke | ||
|
|
||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| release: | ||
| description: The release tag to test, or latest | ||
| required: true | ||
| type: string | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| install: | ||
| name: install from release | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: [macos-latest, ubuntu-latest] | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| # The `release` input is either a tag name, or the string 'latest' | ||
| - name: Run the published installer | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| run: | | ||
| if [ "${{ inputs.release }}" != "latest" ]; then | ||
| tag="${{ inputs.release }}" | ||
| url="https://github.com/0xMiden/midenup/releases/download/${tag}/installer.sh" | ||
| else | ||
| tag= | ||
| url="https://github.com/0xMiden/midenup/releases/latest/download/installer.sh" | ||
| fi | ||
| echo "Installing midenup ${tag}" | ||
| curl --retry 10 -L --proto '=https' --tlsv1.2 -sSf -O "${url}" | ||
| chmod +x installer.sh | ||
| ./installer.sh ${tag:+--version "${tag}"} | ||
|
|
||
| - name: Verify `midenup` installation | ||
| run: | | ||
| which midenup | ||
| midenup --version | ||
|
|
||
| - name: Install the mainnet toolchain from the live manifest | ||
| run: | | ||
| midenup install mainnet | ||
| midenup show list | ||
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
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
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.