rpm: take over enabled state of systemd service from v4 #2452
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Yum based Linux | |
on: | |
push: | |
branches: | |
- master | |
- fluent-package-lts-v5 | |
pull_request: | |
jobs: | |
build: | |
name: Build | |
strategy: | |
fail-fast: false | |
matrix: | |
label: | |
- CentOS 7 x86_64 | |
- RockyLinux 8 x86_64 | |
- AlmaLinux 9 x86_64 | |
- Amazon Linux 2 x86_64 | |
- Amazon Linux 2023 x86_64 | |
include: | |
- label: CentOS 7 x86_64 | |
rake-job: centos-7 | |
test-docker-image: centos:7 | |
centos-stream: false | |
- label: RockyLinux 8 x86_64 | |
rake-job: rockylinux-8 | |
test-docker-image: rockylinux/rockylinux:8 | |
centos-stream: false | |
- label: AlmaLinux 9 x86_64 | |
rake-job: almalinux-9 | |
test-docker-image: almalinux:9 | |
centos-stream: false | |
- label: Amazon Linux 2 x86_64 | |
rake-job: amazonlinux-2 | |
test-docker-image: amazonlinux:2 | |
centos-stream: false | |
- label: Amazon Linux 2023 x86_64 | |
rake-job: amazonlinux-2023 | |
test-docker-image: amazonlinux:2023 | |
centos-stream: false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt -V install ruby ruby-bundler ruby-serverspec | |
sudo gem install bundler:2.2.9 --no-document | |
sudo gem uninstall fileutils | |
- name: Build rpm with Docker | |
run: | | |
rake yum:build YUM_TARGETS=${{ matrix.rake-job }} | |
- name: Upload fluent-package rpm | |
uses: actions/upload-artifact@master | |
with: | |
name: packages-${{ matrix.rake-job }} | |
path: fluent-package/yum/repositories | |
# TODO move the following steps to "Test" job | |
- name: Check Package Size | |
run: | | |
fluent-package/yum/pkgsize-test.sh ${{ matrix.rake-job }} x86_64 | |
- name: Installation Test | |
run: | | |
mkdir -p .bundle | |
docker run \ | |
--rm \ | |
--tty \ | |
--volume ${PWD}:/fluentd:ro \ | |
--env CENTOS_STREAM=${{ matrix.centos-stream }} \ | |
${{ matrix.test-docker-image }} \ | |
/fluentd/fluent-package/yum/install-test.sh | |
- name: Serverspec Test | |
run: | | |
mkdir -p .bundle | |
docker run \ | |
--rm \ | |
--tty \ | |
--volume ${PWD}:/fluentd:ro \ | |
--env CENTOS_STREAM=${{ matrix.centos-stream }} \ | |
${{ matrix.test-docker-image }} \ | |
/fluentd/fluent-package/yum/serverspec-test.sh | |
- name: Binstubs Test | |
run: | | |
mkdir -p .bundle | |
docker run \ | |
--rm \ | |
--tty \ | |
--volume ${PWD}:/fluentd:ro \ | |
--env CENTOS_STREAM=${{ matrix.centos-stream }} \ | |
${{ matrix.test-docker-image }} \ | |
/fluentd/fluent-package/yum/binstubs-test.sh | |
v1test: | |
name: Test with CGroup V1 | |
needs: build | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
label: | |
- CentOS 7 x86_64 | |
- AmazonLinux 2 x86_64 | |
- AmazonLinux 2023 x86_64 | |
include: | |
- label: CentOS 7 x86_64 | |
rake-job: centos-7 | |
test-lxc-image: images:centos/7 | |
- label: AmazonLinux 2 x86_64 | |
rake-job: amazonlinux-2 | |
test-lxc-image: images:amazonlinux/2 | |
- label: AmazonLinux 2023 x86_64 | |
rake-job: amazonlinux-2023 | |
test-lxc-image: images:amazonlinux/2023 | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions/download-artifact@master | |
with: | |
name: packages-${{ matrix.rake-job }} | |
- uses: canonical/setup-lxd@v0.1.1 | |
- name: Run Test | |
run: fluent-package/yum/systemd-test/test.sh ${{ matrix.test-lxc-image }} | |
v2test: | |
name: Test with CGroup V2 | |
needs: build | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
label: | |
- RockyLinux 8 x86_64 | |
- AlmaLinux 9 x86_64 | |
include: | |
- label: RockyLinux 8 x86_64 | |
rake-job: rockylinux-8 | |
test-lxc-image: images:rockylinux/8 | |
- label: AlmaLinux 9 x86_64 | |
rake-job: almalinux-9 | |
test-lxc-image: images:almalinux/9 | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions/download-artifact@master | |
with: | |
name: packages-${{ matrix.rake-job }} | |
- uses: canonical/setup-lxd@v0.1.1 | |
- name: Run Test | |
run: fluent-package/yum/systemd-test/test.sh ${{ matrix.test-lxc-image }} |