mirror of
https://github.com/Jguer/yay.git
synced 2024-11-07 01:27:21 +01:00
0b1ae938a3
* fix(ci): do not attempt to install extra packages for building pacman-git * install needed in ci image * fix missing pacman key * wip * add missing deps
34 lines
904 B
YAML
34 lines
904 B
YAML
name: Test against pacman-git
|
|
on:
|
|
pull_request:
|
|
paths-ignore:
|
|
- "doc/**"
|
|
- "**/*.po"
|
|
- "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
|
|
chmod -R 777 pacman-git
|
|
su github -c 'cd pacman-git; yes | makepkg -si --nocheck'
|
|
- name: Run Build and Tests with pacman-git
|
|
run: make test
|