mirror of
https://github.com/Jguer/yay.git
synced 2025-12-27 07:35:48 -05:00
33 lines
853 B
YAML
33 lines
853 B
YAML
name: Test against pacman
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
name: Lint and test yay
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: jguer/yay-builder:latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/cache@v3
|
|
with:
|
|
path: ~/go/pkg/mod
|
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-go-
|
|
- name: Lint
|
|
env:
|
|
GOFLAGS: -buildvcs=false
|
|
run: /app/bin/golangci-lint run ./...
|
|
- name: Run Build and Tests
|
|
run: make test
|
|
- name: Run Integration Tests
|
|
continue-on-error: true
|
|
run: |
|
|
useradd -m yay &&
|
|
chown -R yay:yay . &&
|
|
cp -r ~/go/ /home/yay/go/ &&
|
|
chown -R yay:yay /home/yay/go/ &&
|
|
su yay -c "make test-integration"
|