Skip to content

Commit

Permalink
Add test-mk-do-fast to ci and release workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
brusdev committed Dec 12, 2022
1 parent ec71063 commit e12f971
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,20 @@ jobs:
- name: Checkout the repo
uses: actions/checkout@v2

- name: Build the image
run: docker build --label \"quay.expires-after=1w\" --label \"git-sha=$GITHUB_SHA\" --tag $IMAGE_NAME:dev.latest .

- name: Start minikube
uses: medyagh/setup-minikube@latest

- name: Load the image into minikube
run: |
export OPERATOR_IMAGE=$(grep -Po '(?<=image: ).*' ./deploy/install/110_operator.yaml)
docker tag $IMAGE_NAME:dev.latest ${OPERATOR_IMAGE}
minikube image load ${OPERATOR_IMAGE}
- name: Execute the tests
run: make test
run: make test-mk-do-fast

- name: Set up Node.js
uses: actions/setup-node@v2
Expand Down
18 changes: 15 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,21 @@ jobs:
- name: Checkout the repo
uses: actions/checkout@v2

- name: Build the image
run: docker build --tag $IMAGE_NAME:latest .

- name: Start minikube
uses: medyagh/setup-minikube@latest

- name: Load the image into minikube
run: |
export OPERATOR_IMAGE=$(grep -Po '(?<=image: ).*' ./deploy/install/110_operator.yaml)
docker tag $IMAGE_NAME:latest ${OPERATOR_IMAGE}
minikube image load ${OPERATOR_IMAGE}
- name: Execute the tests
run: make test-mk-do-fast

- name: Create release tag
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
Expand Down Expand Up @@ -63,9 +78,6 @@ jobs:
git config user.email 'artemiscloudbot@users.noreply.github.com' &&
git add --all && git commit --all --allow-empty --message 'Update docs to ${{ github.ref_name }}' && git push
- name: Build the image
run: docker build --tag $IMAGE_NAME:latest .

- name: Push the image
run: >
RELEASE_TAG="$(git describe --exact-match --tags)" && IMAGE_TAG=${RELEASE_TAG#v} &&
Expand Down

0 comments on commit e12f971

Please sign in to comment.