Skip to content
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

IZE-380 Install tests #545

Merged
merged 4 commits into from
Nov 28, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/run.apt-install-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "Tests: APT Install"
defaults:
run:
shell: bash

env:
AWS_PROFILE: default
AWS_REGION: us-east-1

on:
workflow_dispatch:
# schedule:
# - cron: '0 3 * * */2'

jobs:
install_and_test:
name: Install On Ubuntu Latest
runs-on: ubuntu-latest
steps:

- name: get ize version
uses: rez0n/actions-github-release@main
id: ize_release
env:
token: ${{ secrets.GITHUB_TOKEN }}
repository: "hazelops/ize"
type: "latest"

- name: Install Ize
run: |
echo "deb [trusted=yes] https://apt.fury.io/hazelops/ /" | sudo tee /etc/apt/sources.list.d/fury.list
sudo apt-get update
sudo apt-get install ize

- name: Run Ize and compare version
run: ize -version |grep ${{ steps.ize_release.outputs.release }}
47 changes: 47 additions & 0 deletions .github/workflows/run.brew-install-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: "Tests: brew install"
defaults:
run:
shell: bash

env:
AWS_PROFILE: default
AWS_REGION: us-east-1

on:
workflow_dispatch:
# schedule:
# - cron: '0 3 * * */2'

jobs:
get_release_version:
name: Get Release Version
runs-on: ubuntu-latest
outputs:
release: ${{ steps.ize_release.outputs.release }}
steps:
- name: get ize version
id: ize_release_version
uses: rez0n/actions-github-release@main
env:
token: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
repository: "hazelops/ize"
type: "latest"

- name: Save release version
id: ize_release
run: |
echo "release=${{ steps.ize_release_version.outputs.release }}" >> $GITHUB_OUTPUT
echo ${{ steps.ize_release_version.outputs.release }}

install_ize:
name: Install On MacOS Latest
runs-on: macos-latest
needs: get_release_version
steps:
- name: Install Ize
run: |
brew tap hazelops/ize
brew install ize

- name: Run Ize and compare version
run: ize -version |grep ${{needs.get_release_version.outputs.release}}