Commit graph

19 commits

Author SHA1 Message Date
Major Hayden
01c8daabf7 ⏱ Extend golangci-lint timeout to 5m0s
For reasons unknown, golangci-lint's default 1m0s timeout is *slightly*
too short for CI runs occasionally. Extend it to 5 minutes to ensure the
job always has enough time to run.

Signed-off-by: Major Hayden <major@redhat.com>
2020-08-24 12:21:38 -05:00
Major Hayden
ac11ea00f0 Remove RPM builds in GitHub Workflows
We are now building RPMs via mock in Jenkins, so we don't need these RPM
build jobs in GitHub Workflows.

Signed-off-by: Major Hayden <major@redhat.com>
2020-05-22 07:44:44 -05:00
Brian C. Lane
3c312b9bbd github: Fix go test coverage report
The go test coverage report does not cover other packages unless you
list them with the -coverpkg= argument. This results in an incomplete
coverage report with oddly missing lines.

This commit lists all of the packages so that they will all be included
when running the tests and gathering the results.
2020-05-20 22:58:29 +02:00
Ondřej Budai
4ebf6ee85b upload/koji: add a simple test
This commit adds a test which uploads a random file to Koji and runs CGImport.
The result is checked using the koji cli client.
2020-05-19 13:54:53 +02:00
Ondřej Budai
f21e86cd8c workflow: enable updates-testing repo when installing osbuild on f31
This is the same fix as in 7ff15e1f, but for the old package (and therefore
for f31).

Copy of the 7ff15e1f commit message:

The source of issue here is that our release cycles are synchronized and
if we want to use the latest released osbuild we need to wait for the
bodhi process. It makes sense that we don't want to use latest osbuild
from git master but we should be confident enough in the version we
submit to bodhi.

Using the version from updates-testing therefore fixes the issue with
synchronization and avoids using unreleased versions.
2020-04-24 15:27:39 +02:00
Martin Sehnoutka
ebeecfaf33 github/workflows: downgrade golang to 1.12
We currently declare compatibility with golang 1.12 so we should also
use it in our CI. Once we agree that we would benefit from some features
in golang 1.13 or 1.14 we can bump it back.
2020-04-15 10:34:32 +02:00
Martin Sehnoutka
7ff15e1fc2 workflow: enable updates-testing repo when installing osbuild
The source of issue here is that our release cycles are synchronized and
if we want to use the latest released osbuild we need to wait for the
bodhi process. It makes sense that we don't want to use latest osbuild
from git master but we should be confident enough in the version we
submit to bodhi.

Using the version from updates-testing therefore fixes the issue with
synchronization and avoids using unreleased versions.
2020-04-14 19:12:44 +02:00
Major Hayden
f124b8e0e0 📦 Use prepared containers
We added this to osbuild but it was never added to osbuid-composer.

Signed-off-by: Major Hayden <major@redhat.com>
2020-04-07 20:16:58 +02:00
Ondřej Budai
c081844954 ci/github: bump the checkout action to version 2
actions/checkout@v1 sometimes fails, bumping the version should fix it. See:
https://github.com/actions/checkout/issues/23
2020-04-01 15:03:48 +02:00
Lars Karlitski
144570026d .github: switch to codecov.io
coveralls doesn't work from GitHub actions. Its "github" service type
uses the GITHUB_TOKEN from the action, which only has read access when
invoked from a forked repository.

codecov gets this right: it validates that an uploaded coverage file
originated from a GitHub action run by asking GitHub, and then uses its
OAuth credentials (through the Marketplace App) to comment and set
status.

Also, coveralls requires a third-party package to convert go's coverage
report to a format it understands. codecov detects the format
server-side. It also handles go's coverage format better: it highlights
lines with "some coverage" in yellow (coveralls has no concept of this).
2020-03-30 20:43:34 +02:00
Lars Karlitski
57134548a1 .github: run unit tests only once, with coverage
We've been running the unit tests twice, once with and once without
coverage. Run them only once, with coverage.
2020-03-29 16:10:46 +02:00
Ondřej Budai
64181e7ba0 ci/rpm: use the old spec file for f31
Prior this commit the rpm for fedora 31 was built using the new spec file.
The old spec file should be used for that Fedora version.
2020-03-25 11:43:39 +01:00
Ondřej Budai
8873b3d17e ci/source-check: check also the unstaged files
Prior this commit it was possible to pass the CI checks even without added
files in vendor directory, because git diff doesn't check for unstaged
files. This commit fixes it.
2020-03-13 16:00:29 +01:00
Tom Gundersen
e8e5a11389 github-action: run unit tests
There should be no need to run unit tests on specific architectures,
move it over to github-actions and rename "Lint" to "Checks" as it
is a bit more generic now.

Signed-off-by: Tom Gundersen <teg@jklm.no>
2020-03-10 23:38:03 +01:00
Tom Gundersen
c50aa9e135 github-action: add prepare-source test to linting
This is inspired by PR #307, but uses github actions rather than
Travis.

Signed-off-by: Tom Gundersen <teg@jklm.no>
2020-03-10 23:38:03 +01:00
Brian C. Lane
c5341211e9 Add coveralls.io code coverage github-action
This uses the goveralls package to convert the coverage report to lcov
and send it to coveralls.io
2020-03-09 18:06:08 +01:00
Major Hayden
75dd1db6e3 🐣 Use new 'make rpm' in GitHub Actions
Signed-off-by: Major Hayden <major@redhat.com>
2020-03-05 10:59:53 -06:00
Major Hayden
7af12f6ce6 📦 Add RPM builds via github actions
Unify the github actions workflows under `tests.yml` and add an RPM build
job to match the one for osbuild.

Signed-off-by: Major Hayden <major@redhat.com>
2020-03-03 21:06:04 +01:00
Ondřej Budai
7de9b88a3e ci: add golangci-lint 2020-03-02 14:28:55 +01:00