Skip to content

Merge pull request #1074 from triarius/show-package-on-clean-fail #603

Merge pull request #1074 from triarius/show-package-on-clean-fail

Merge pull request #1074 from triarius/show-package-on-clean-fail #603

Workflow file for this run

name: Paru
on:
push:
paths:
- 'src/*.rs'
- 'testdata/**'
- 'tests/**'
- 'Cargo.*'
pull_request:
paths:
- 'src/*.rs'
- 'testdata/**'
- 'tests/**'
- 'Cargo.*'
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
container:
image: archlinux
steps:
- name: Install Packages
run: pacman -Syu rust clang gcc git libarchive pkgconf sudo fakeroot --noconfirm --needed
- name: Checkout
uses: actions/checkout@v2
- name: Format
run: cargo fmt -- --check
- name: Build
run: cargo build --locked --features generate
- name: Test
run: sudo -u nobody XDG_STATE_HOME=/tmp CARGO_HOME=/tmp/cargo cargo test --locked --features generate,mock --target-dir=/tmp -- --nocapture
test-git:
runs-on: ubuntu-latest
container:
image: archlinux
steps:
- name: Install Packages
run: pacman -Syu rust curl clang git base-devel libarchive meson asciidoc doxygen fakechroot pkgconf --noconfirm --needed
- name: Install Pacman-git
run: |
git clone https://aur.archlinux.org/pacman-git
chown -R nobody pacman-git
cd pacman-git
sudo -u nobody makepkg --nocheck
sudo -u nobody makepkg --packagelist > list
yes | pacman -U $(cat list)
- name: Checkout
uses: actions/checkout@v2
- name: Format
run: cargo fmt -- --check
- name: Build
run: cargo build --locked --features git,generate
- name: Test
run: sudo -u nobody XDG_STATE_HOME=/tmp CARGO_HOME=/tmp/cargo cargo test --locked --features git,generate,mock --target-dir=/tmp -- --nocapture