From f40beab9a7b20e3b487bab2f2fbce903f1c0bed6 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Tue, 20 Jun 2023 16:03:17 +0200 Subject: [PATCH] .github/workflows: Run the tests on Ubuntu 22.04 https://github.com/containers/toolbox/pull/1319 --- .github/workflows/ubuntu-tests.yaml | 85 +++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 .github/workflows/ubuntu-tests.yaml diff --git a/.github/workflows/ubuntu-tests.yaml b/.github/workflows/ubuntu-tests.yaml new file mode 100644 index 000000000..9b394a16b --- /dev/null +++ b/.github/workflows/ubuntu-tests.yaml @@ -0,0 +1,85 @@ +name: ubuntu-tests + +on: + pull_request: + branches: + - main + schedule: + - cron: '0 0 * * *' + +jobs: + ubuntu-jammy-tests: + runs-on: ubuntu-22.04 + + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: true + + - name: Install deb packages + run: | + sudo apt-get update + sudo apt-get install \ + bash-completion \ + bats \ + gcc \ + go-md2man \ + golang \ + meson \ + podman \ + shellcheck \ + skopeo + + - name: Checkout shadow + uses: actions/checkout@v3 + with: + path: shadow-maint/shadow + ref: 4.13 + repository: shadow-maint/shadow.git + submodules: true + + - name: Install deb packages for shadow + run: | + sudo apt-get update + sudo apt-get install \ + autoconf \ + autopoint \ + gettext \ + libaudit-dev \ + libcrypt-dev \ + libpam0g-dev \ + libselinux1-dev \ + libsemanage-dev + + - name: Set up build directory for shadow + run: | + autoreconf --force --install --verbose + ./configure \ + --disable-account-tools-setuid \ + --disable-silent-rules \ + --with-audit \ + --with-libpam \ + --with-selinux \ + --with-yescrypt \ + --without-acl \ + --without-attr \ + --without-su \ + --without-tcb \ + SHELL=/bin/sh + working-directory: shadow-maint/shadow + + - name: Build shadow + run: make + working-directory: shadow-maint/shadow + + - name: Install shadow + run: sudo make install + working-directory: shadow-maint/shadow + + - name: Download Go modules + run: go mod download -x + working-directory: src + + - name: Set up build directory + run: meson setup --fatal-meson-warnings builddir