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

Adjust release workflow to update MCAD on funtional test #201

Merged
merged 1 commit into from
Feb 21, 2024
Merged
Changes from all 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
10 changes: 7 additions & 3 deletions .github/workflows/instascale-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,22 @@ jobs:
run: |
go get github.com/project-codeflare/multi-cluster-app-dispatcher@${{ github.event.inputs.mcad-version }}

- name: Adjust multi-cluster-app-dispatcher dependency in functional tests
run: |
sed -i -E "s|(.*multi-cluster-app-dispatcher@)v[0-9]+\.[0-9]+\.[0-9]+(.*)|\1${{ github.event.inputs.mcad-version }}\2|" functional-tests/appwrapper_reconciler_test.go

# Build and test repository to make sure that MCAD update didn't break anything
- name: Build
run: go build -o bin/manager main.go
- name: Test
run: go test -v ./...

# Update dependencies
- name: Commit go.mod and go.sum changes to the branch
- name: Commit go.mod, go.sum, and functional tests changes to the branch
uses: stefanzweifel/git-auto-commit-action@v5
sutaakar marked this conversation as resolved.
Show resolved Hide resolved
with:
commit_message: Update go.mod and go.sum to MCAD ${{ github.event.inputs.mcad-version }}
file_pattern: 'go.mod go.sum'
commit_message: Update go.mod, go.sum, and functional tests to MCAD ${{ github.event.inputs.mcad-version }}
file_pattern: 'go.mod go.sum *.go'
create_branch: true
branch: ${{ env.PR_BRANCH }}

Expand Down