From add7dc54c140a9d1b85e81fd8a6697d9daff8de7 Mon Sep 17 00:00:00 2001 From: Steve Traylen Date: Wed, 10 Jan 2024 20:29:57 +0100 Subject: [PATCH] Add a github action --- .github/workflows/pamtester.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/pamtester.yml diff --git a/.github/workflows/pamtester.yml b/.github/workflows/pamtester.yml new file mode 100644 index 0000000..387b76f --- /dev/null +++ b/.github/workflows/pamtester.yml @@ -0,0 +1,15 @@ +--- +name: pamtester run of pam_xdg_runtime_dir +on: [push] +jobs: + pamtester: + runs-on: ubuntu-latest + steps: + - run: sudo apt install pamtester gcc make libselinux1-dev + - run: make + - run: sudo make install INSTALLDIR=/usr/lib/x86_64-linux-gnu + - run: sudo cp pamtester/xdg_runtime_dir + - run: sudo adduser testuser + - run: pamtester -v xdg_runtime_dir testuser open_session + - run: test -d /run/user/$(id -u testuser) +