Nicolas Iooss
b2891256cb
GitHub Actions: do not use macOS latest runner for now
...
GitHub is currently migrating its macos-latest runner to macOS 11:
https://github.com/actions/virtual-environments/issues/4060
Unfortunately, installing VirtualBox and Vagrant on this new version of
macOS is not easy, and the current macos-11 runner does not support
running virtual machines using Vagrant. This issue is being fixed on
https://github.com/actions/virtual-environments/pull/4010 .
Until this Pull Request is merged, use macos-10.15 runner instead of
macos-latest, to continue using Vagrant to run the SELinux testsuite in
a virtual machine.
Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
Acked-by: Ondrej Mosnacek <omosnace@redhat.com>
2021-10-04 09:50:46 -04:00
Evgeny Vereshchagin
a2a40f0345
ci: turn on CIFuzz
...
Now that almost all the bugs reported by OSS-Fuzz have been
fixed libsepol/cil should be stable enough to get CIFuzz working
more or less reliably. It should help to catch regressions/new bugs
faster.
https://google.github.io/oss-fuzz/getting-started/continuous-integration/
The patch was tested on GitHub in https://github.com/SELinuxProject/selinux/pull/285
The CIFuzz job can be found at https://github.com/SELinuxProject/selinux/actions/runs/1017865690
Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
2021-07-13 21:03:29 +02:00
Nicolas Iooss
316a4f89dd
GitHub Actions: run SELinux testsuite in Fedora virtual machine
...
Use the Vagrant configuration in scripts/ci in a workflow for GitHub
Actions.
Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
2021-01-20 16:45:12 +01:00
Nicolas Iooss
af3e6789f0
GitHub Actions: drop Ruby 2.4 from matrix
...
When migrating to Ubuntu 20.04, Ruby 2.4 is no longer available, and
this migration is coming soon, according to
https://github.com/actions/virtual-environments/issues/1816 .
Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
2020-12-09 22:34:33 +01:00
Nicolas Iooss
e8d50389ab
GitHub Actions: upgrade to Python 3.9
...
Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
2020-12-09 22:34:28 +01:00
Nicolas Iooss
7844cd212f
Add configuration to build and run tests in GitHub Actions
...
Copy the tests that are currently run on Travis CI, in order to no
longer depends on Travis CI.
For more context: Travis-CI is changing its offer, as documented in
https://docs.travis-ci.com/user/migrate/open-source-repository-migration
and SELinuxProject moved to https://travis-ci.com
https://lore.kernel.org/selinux/CAFqZXNspH6MmB-o0wtJJwj-p0DKKrH-ZjfW2YkF_yQS_gCBwqQ@mail.gmail.com/T/#t
Unfortunately the credits for opensource projects are quite limited, and
require interaction with Travis CI support (which was quite unresponsive
when I contacted them for other opensource projects I am maintaining).
Create a configuration for Github Actions that duplicates most Travis CI
checks.
* macOS check has not yet been converted, but GitHub Actions support
this platform so this can be done in another patch (and in another
configuration in .github/workflows ?).
* KVM support is not available on GitHub Actions so running SELinux
testsuite in a Fedora VM is not possible. This is a known issue
(https://github.com/actions/virtual-environments/issues/183 ) and other
projects seem to face the same issue (for example
https://github.com/opencontainers/runc/issues/2670 ).
This configuration has been tested on
https://github.com/fishilico/selinux/actions/runs/380579153
Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2020-11-27 09:49:39 +01:00