Skip to content

Commit

Permalink
.github/workflows: Run the tests on Ubuntu 22.04
Browse files Browse the repository at this point in the history
  • Loading branch information
debarshiray committed Jun 22, 2023
1 parent b57dfd8 commit 29b09bc
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/ubuntu-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
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 \
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 \
libpam0g-dev
- name: Set up build directory for shadow
run: |
autoreconf --force --install --verbose
./configure --disable-account-tools-setuid --disable-silent-rules --with-libpam --with-yescrypt
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

0 comments on commit 29b09bc

Please sign in to comment.