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

Add CI workflows for testing and building COSI #3

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

anurag4DSB
Copy link
Collaborator

@anurag4DSB anurag4DSB commented Sep 12, 2024

  • Added Dockerfile, Makefile and CI workflows
  • Added tests for DriverInfo in identity server Issue: S3C-9222

Note: development/1 will be remained to main. We used development/1 originally for this but Platform Engineering let us its not needed.

@anurag4DSB anurag4DSB changed the base branch from development/1 to master September 12, 2024 00:25
@anurag4DSB anurag4DSB marked this pull request as ready for review September 12, 2024 00:28
@anurag4DSB anurag4DSB changed the base branch from master to development/1 September 12, 2024 00:28
.github/workflows/release.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/docker-build.yml Outdated Show resolved Hide resolved
@anurag4DSB
Copy link
Collaborator Author

I force pushed but for some reason the CI is not triggering.
It took 5 minutes for github PR to show my updated commits, I am guessing this is a github issue.

.github/workflows/release.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated
# Copy the source code into the container
COPY . .

RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o scality-cosi-driver ./cmd/scality-cosi-driver

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be better to use an ENV clause for the GO*build vars, then callmake build, and remove the setting of GO*` vars inside Makefile (unless there's a strong reason to build only for linux/amd64, in which case it can stay in the Makefile).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated in 0787021

Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
pkg/driver/identity_test.go Outdated Show resolved Hide resolved
pkg/driver/identity_test.go Outdated Show resolved Hide resolved
pkg/driver/identity_test.go Outdated Show resolved Hide resolved
@anurag4DSB
Copy link
Collaborator Author

anurag4DSB commented Oct 18, 2024

Coming in next PRs: Add readme for testing

- Update GO version to 1.23.2
- Added Dockerfile, Makefile and CI workflows
- Added tests for DriverInfo in identity server using Ginkgo
Issue: S3C-9222
@anurag4DSB anurag4DSB merged commit 91472db into main Oct 21, 2024
4 checks passed
@anurag4DSB anurag4DSB deleted the feature/S3C-9222-setup-CI branch October 21, 2024 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants