2022-03-05 00:04:55 +01:00
|
|
|
name: Test against pacman-git
|
|
|
|
on:
|
2022-03-05 00:30:15 +01:00
|
|
|
pull_request:
|
2022-03-05 00:04:55 +01:00
|
|
|
paths-ignore:
|
|
|
|
- "doc/**"
|
2022-03-05 00:30:15 +01:00
|
|
|
- "**/*.po"
|
2022-03-05 00:04:55 +01:00
|
|
|
- "README.md"
|
|
|
|
- ".gitignore"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Lint and test yay
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
|
|
image: jguer/yay-builder:latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- uses: actions/cache@v1
|
|
|
|
with:
|
|
|
|
path: ~/go/pkg/mod
|
|
|
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-go-
|
|
|
|
- name: checkout pacman-git
|
|
|
|
run: |
|
|
|
|
git clone https://aur.archlinux.org/pacman-git
|
|
|
|
useradd github
|
|
|
|
echo 'github ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
2022-12-18 19:24:56 +01:00
|
|
|
chmod -R 777 pacman-git
|
2022-03-05 00:04:55 +01:00
|
|
|
su github -c 'cd pacman-git; yes | makepkg -si --nocheck'
|
|
|
|
- name: Run Build and Tests with pacman-git
|
|
|
|
run: make test
|