forked from remyoudompheng/go-alpm
-
Notifications
You must be signed in to change notification settings - Fork 14
31 lines (30 loc) · 929 Bytes
/
test-git.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Test pacman-git
# This workflow is triggered on pushes to the repository.
on:
push:
branches-ignore:
- pacman*
paths-ignore:
- "examples/**"
- "Dockerfile"
- "**/builder-image.yml"
pull_request:
jobs:
build:
name: Build and test go-alpm
runs-on: ubuntu-latest
container:
image: jguer/yay-builder:latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build and install pacman-git
run: |
useradd github
pacman -Syu --noconfirm --overwrite=* --needed sudo base-devel git
echo "github ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
git clone https://aur.archlinux.org/pacman-git
chown -R github pacman-git
su github -c "cd pacman-git; yes | makepkg -si --nocheck"
- name: Run Build and Tests with pacman-git
run: make test