-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.github/workflows: Run the tests on Ubuntu 22.04
- Loading branch information
1 parent
b57dfd8
commit 9540d96
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
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-main/shadow | ||
ref: 4.13 | ||
repository: shadow-main/shadow | ||
submodules: true | ||
|
||
- name: Set up build directory for shadow | ||
run: | | ||
autoreconf --force --install --verbose | ||
./configure --disable-silent-rules | ||
working-directory: shadow-main/shadow | ||
|
||
- name: Build shadow | ||
run: make | ||
working-directory: shadow-main/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 |