Skip to content

Add basic Github action workflow to run checks#5

Open
n-peugnet wants to merge 1 commit intoDefangLabs:mainfrom
n-peugnet:main
Open

Add basic Github action workflow to run checks#5
n-peugnet wants to merge 1 commit intoDefangLabs:mainfrom
n-peugnet:main

Conversation

@n-peugnet
Copy link
Copy Markdown

I understand that you probably did not intend to take over upstream development in this fork, but as the previous upstream archived their repository, your fork becomes the most up to date version of this library.

As docker-compose now depends on your fork, I am currently packaging your library in Debian, and noticed that the testsuite does not pass.
It seems upstream developers didn't care to run the testsuite after making changes, leading to a lot of tests failing.

To prevent this situation, it is good to run the build and tests on each push and pull requests to master.

This commits adds a very basic GitHub actions workflow for go projects.

The composites check of go vet is ignored as the tests make a heavy use of unkeyed struct fields, which leaded to a lot of "struct literal uses unkeyed fields" warnings that are not that important since the package comes from the same repository.


As a follow-up, I will send you some patches that fix most of the test failures, but for a few of them, I did not manage to find an easy solution yet. I will try to run git bisect to find where these few last failing tests stopped passing.

The tests of this library currently do not pass. It seems upstream
developpers didn't care to run the testsuite after making changes,
leading to a lot of tests failing.
To prevent this situation, it is good to run the build and tests on each
push and pull requests to master.
This commits adds a very basic GitHub actions workflow for go projects.

The composites check of go vet is ignored as the tests make a heavy use
of unkeyed struct fields, which leaded to a lot of "struct literal uses
unkeyed fields" warnings that are not that important since the package
comes from the same repository.
@n-peugnet
Copy link
Copy Markdown
Author

n-peugnet commented Feb 16, 2026

See the kind of (currently failing) workflow this produces on my fork: https://github.com/n-peugnet/secret-detector/actions/runs/22065946922/job/63757679095

@n-peugnet n-peugnet mentioned this pull request Feb 19, 2026
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.

1 participant