Commit graph

159 commits

Author SHA1 Message Date
Lars Karlitski
294431ace1 test: add test for host detection
Includes a test for each of the runners we currently have, except for
fedora27, which is (hopefully) not used as a host OS anymore.
2020-02-28 16:06:30 +01:00
Major Hayden
7d53835bba 🤦‍♂️ Restore the Fedora modularity workaround
Signed-off-by: Major Hayden <major@redhat.com>
2020-02-27 20:19:51 +01:00
Major Hayden
4b2089bbf6 🌮 Merge GitHub Actions workflows
A single workflow allows us to re-use artifacts throughout all jobs.

Also, we can fail the tests early if there's a linting issue before
we spend time waiting for RPMs to build.

Signed-off-by: Major Hayden <major@redhat.com>
2020-02-27 19:59:03 +01:00
Major Hayden
4ad4587683 📦 Disable Fedora modular repos
Avoid delays and problems with the modularity repositories
by disabling them before building RPMs.

Signed-off-by: Major Hayden <major@redhat.com>
2020-02-27 19:51:48 +01:00
Major Hayden
cd4c6944c6 🧨 Run all RPM builds even if one fails
By default, GitHub Actions stops running all RPM builds if one fails.
This means that a temporary repository issue (like what is happening
with F32 today) stops all RPM builds.

Set the `fail-fast` option to `false` to disable this behavior.

Signed-off-by: Major Hayden <major@redhat.com>
2020-02-27 19:25:29 +01:00
Major Hayden
4c92b7a28b Run unit tests in GitHub Actions
Rename `lint.yml` to `tests.yml` to allow us to put more jobs under the
same test name.

Signed-off-by: Major Hayden <major@redhat.com>
2020-02-25 20:16:49 +01:00
Tom Gundersen
9d0f6bd85e github: build RPMs without git checkout
Make RPM building more similar to how RPMs will be built in koji.

This downloads the specfile from github at the given commit, appends
the commit sha to the specfile and uses spectools to download the
correct sources from github.

This should be equivalent to what is done in the makefile, the only
behavioral difference is that the rpms are now versioned based on
the git sha they are built from.

The main purpose of this change is to avoid any differences between
the CI and the real RPMs due to bugs in the Makefile. Correctly
versioned RPMs will also be handy for testing/debugging/deployment.

Signed-off-by: Tom Gundersen <teg@jklm.no>
2020-02-25 16:13:31 +01:00
Major Hayden
f2c9276765 Run pylint via GitHub Actions
Get pylint results much easier by using GitHub Actions.

Signed-off-by: Major Hayden <major@redhat.com>
2020-02-24 23:10:16 +01:00
Major Hayden
cdc84a9ce2 Build RPMs via GitHub Actions
Signed-off-by: Major Hayden <major@redhat.com>
2020-02-24 20:02:30 +01:00