yay/.github/workflows/testing.yml

42 lines
1.1 KiB
YAML
Raw Normal View History

2020-01-12 15:16:04 +00:00
name: Build
# This workflow is triggered on pushes to the repository.
on:
push:
paths-ignore:
- "doc/**"
- "README.md"
- ".gitignore"
2020-06-13 21:20:22 +00:00
branches-ignore:
- "master"
pull_request:
jobs:
build:
2020-02-27 23:08:35 +00:00
name: Lint and test yay
runs-on: ubuntu-latest
container:
2020-09-07 22:02:28 +00:00
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-
2020-09-07 22:02:28 +00:00
- name: Lint
run: /app/bin/golangci-lint run ./...
- name: Run Build and Tests
run: make test
2021-05-02 14:02:33 +00:00
- name: checkout pacman-git
run: |
pacman -Sy --noconfirm sudo base-devel
git clone https://aur.archlinux.org/pacman-git
useradd github
chmod -R 777 pacman-git
echo 'github ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
su github -c 'cd pacman-git; yes | makepkg -si --nocheck'
2021-05-02 14:02:33 +00:00
- name: Run Build and Tests with pacman-git
run: make test