mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-10-21 15:18:19 +00:00
0766c7213b
Install rsyslog and create its xCAT log directory before installing xCAT. Wait for a unique syslog marker before changing test state, including when the log does not exist yet. Reuse that wait for the completion marker.
19 lines
1.0 KiB
YAML
19 lines
1.0 KiB
YAML
name: xcat_test
|
|
on: [pull_request, workflow_dispatch]
|
|
jobs:
|
|
xcat_pr_test:
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 60
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- name: Refresh package indexes
|
|
run: sudo apt-get update
|
|
- name: Install dependencies
|
|
run: sudo env DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends --no-install-suggests bats bubblewrap rpm rsyslog build-essential fakeroot reprepro devscripts debhelper libcapture-tiny-perl libfile-slurper-perl libjson-perl libyaml-pp-perl libparallel-forkmanager-perl libsoap-lite-perl libdbi-perl libcgi-pm-perl quilt openssh-server dpkg looptools genometools software-properties-common grub-common grub-efi-amd64-bin
|
|
- name: Enable postscript test namespaces
|
|
run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
|
|
- name: Prepare xCAT syslog directory
|
|
run: sudo install -d -o syslog -g adm -m 0750 /var/log/xcat
|
|
- name: Run tests
|
|
run: perl github_action_xcat_test.pl
|