Add chown for low-level user #57
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
on: | |
push: | |
branches: [ "feature/continuous-integration", "development" ] | |
jobs: | |
devel: | |
runs-on: ubuntu-latest | |
container: | |
image: archlinux:latest | |
steps: | |
- run: pacman-key --init | |
- run: pacman -Syu --noconfirm git sudo | |
- uses: actions/checkout@v3 | |
- run: git config --global --add safe.directory /__w/cagebreak/cagebreak | |
- run: bash scripts/install-development-environment | |
- run: meson setup build -Dxwayland=true -Dman-pages=true --buildtype=release | |
- run: ninja -C build | |
- run: meson test -C build --suite devel --suite devel-long -v | |
basic: | |
runs-on: ubuntu-latest | |
container: | |
image: archlinux:latest | |
steps: | |
- run: pacman-key --init | |
- run: pacman -Syu --noconfirm git sudo | |
- uses: actions/checkout@v3 | |
- run: bash scripts/install-development-environment | |
- run: meson setup build -Dxwayland=true -Dman-pages=true --buildtype=release | |
- run: ninja -C build | |
- run: useradd test && usermod -L test | |
- run: chown -R test . | |
- run: runuser -p -l test -c 'meson test -C build --suite basic -v' | |
release: | |
runs-on: ubuntu-latest | |
container: | |
image: archlinux:latest | |
steps: | |
- run: pacman-key --init | |
- run: pacman -Syu --noconfirm git sudo | |
- uses: actions/checkout@v3 | |
- run: bash scripts/install-development-environment | |
- run: meson setup build -Dxwayland=true -Dman-pages=true --buildtype=release | |
- run: ninja -C build | |
- run: useradd test && usermod -L test | |
- run: chown -R test . | |
- run: runuser -p -l test -c 'meson test -C build --suite release -v' | |
# pkgtest: | |
# runs-on: ubuntu-latest | |
# container: | |
# image: archlinux:latest | |
# steps: | |
# - run: pacman-key --init | |
# - run: pacman -Syu --noconfirm git sudo | |
# - run: git clone https://github.com/project-repo/cagebreak-pkgbuild | |
# - run: cd cagebreak-pkgbuild/cagebreak | |
# - run: makepkg |