Commit graph

26 commits

Author SHA1 Message Date
Tomáš Hozza
0013049d26 GHA: add the common-stale-action
Add the common-stale-action for marking issues and PRs as stale. This is
consistent with all osbuild group projects.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2025-06-18 15:41:30 +02:00
Michael Vogt
6454da7b7e workflow: add createrepo_c package to test dependencies
This will fix the issue that TestManifestExtraRepo was not
run.
2025-04-10 10:26:01 +00:00
Tomáš Hozza
724ffd4a77 GH Action: check the SPEC osbuild/images deps minimum version
Add a check which leverages the osbuild/images@check-spec-deps-action
action to check that the SPEC files requires at least the minimum
versions for dependencies specified by the `osbuild/images`.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2025-04-02 20:57:17 +00:00
Michael Vogt
cd1b5bae64 test: add cross-build end-to-end test
This commit uses the new `build --arch=` support to perform
a cross arch build for aarch64, ppc64le, riscv64, s390x on
fedora. We could do also centos-9 each arch is already 20min.
2025-03-25 11:58:24 +00:00
Michael Vogt
a9bd51338e github: run tests inside a fedora container
Running the tests inside fedora means we get much more meaningful
results as we will have all the required packaes and there will
be no need to skip tests.
2025-01-25 11:05:05 +00:00
dependabot[bot]
bf6645554f build(deps): bump actions/setup-go from 4 to 5
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-17 08:03:08 +00:00
Florian Schüller
4799e233c2 pre-commit: re-enable golangci-lint
Followup of #54
2025-01-16 14:16:31 +00:00
Michael Vogt
25043b2e70 workflow: switch to composite action to fix go/pytest
The go/pytest tests were broken because the reusable workflow
is not quite the right construct. We need the "composite action".
2025-01-10 08:30:28 +00:00
Michael Vogt
573f56a6ec workflow: rename .yml -> .yaml 2025-01-10 08:30:28 +00:00
Florian Schüller
c408577b2d pre-commit: introduce make lint
Also make the linters part of the github actions.
2025-01-07 12:29:58 +00:00
Florian Schüller
734c132500 prepare all syntax for linters and spellchecks 2025-01-07 12:29:58 +00:00
Simon Steinbeiss
51e4171caf actions: Add pr-best-practices workflow
This commit adds the pr-best-practices check, which prevents pull
requests without descriptions being merged and which allows developers
to quickly create Jira Tasks based on the /jira-epic command in pull
request descriptions or comments.
2024-12-20 15:41:37 +00:00
dependabot[bot]
02cb63b8fd build(deps): bump docker/login-action from 2 to 3
Bumps [docker/login-action](https://github.com/docker/login-action) from 2 to 3.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-20 14:27:26 +00:00
Florian Schüller
cad909e77a github/workflows/release.yml: enable creating release artifacts 2024-12-20 13:59:49 +00:00
Florian Schüller
be1cfec923 github/workflows/create-tag: initial version
Helper to create a tag for a new release.
2024-12-20 13:30:45 +00:00
Florian Schüller
cdff269270 github/workflows: introduce release action
Using staging branch for now, due to the new
release_artifacts.
2024-12-20 08:08:59 +00:00
Simon de Vlieger
cdf627389e ci: dependabot
As we've now vendored our dependencies let's enable dependabot in the
same way we use it in our other Go projects.

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2024-12-19 14:45:01 +00:00
Simon de Vlieger
38af61d633 ci: enable aarch64 container builds
Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2024-12-19 14:26:40 +00:00
Michael Vogt
119e8fcffa workflow: run tests as part of the merge group
This commit adds the missing `merge_group` to the pytest and go
test workflows.

Note that I added `types: [ "checks_requested" ]` (just like we
have for the container.yaml) but I'm not actually sure about it,
the GH docs are a bit unclear to me here, it seems they suggest
to keep this generic but then the example explicitly uses `type`
(I'm probably overthinking this fwiw).

[1] https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#merge_group
2024-12-19 12:08:08 +00:00
Michael Vogt
f631a16976 workflow: rename all .yml files to .yaml
The original `go.yml` got added via some GH automation. But we
are not MSDOS and we can affort more than 3 chars for a file
extension - so this commit renames all .yml to .yaml which is
what we use everywhere else.
2024-12-19 11:32:37 +00:00
Michael Vogt
cc4a730381 github: add new pytest based integration test run workflow
This commit adds a new workflow that runs the new `pytest` based
integration tests inside GH actions. It also extracts a common
`testdeps.yml` reusable workflow so that we do not duplicate the
package list of test dependencies.
2024-12-19 08:49:26 +00:00
Michael Vogt
e7d8a39fcf test: add minimal test for container based building of images
This commit adds a smoke test that builds the ibcli container
and runs a fedora-41 raw-minimal build to double check that
the container based building actually works.

Thanks to Ondrej for suggesting this.
2024-12-19 08:49:26 +00:00
Simon de Vlieger
fad02336b3 ci: build container
Automatically build the container for `image-builder-cli` and upload it
to `ghcr.io`. This builds only for x86 initially.

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2024-12-19 08:49:26 +00:00
Michael Vogt
8ae5b98d9d HACKING.md: add basic documentation for the development
This commit adds a basic HACKING.md that explains the bare mimimum
to get started, including `go test -short` to skip the expensive
tests.

Contains also a drive-by rename of the test dependency install
for the GH action.
2024-12-16 07:54:45 +00:00
Michael Vogt
56f9c6969c workflow: update to work with the images dependencies
This commit updates the GH workflow file to install the required
dependencies to build the images library.
2024-11-28 09:53:08 +00:00
Michael Vogt
12d60a9c74
workflow: add trivial go workflow based on default template 2024-11-18 10:26:22 +01:00