fix(installer): Fixes the same pkgbase being built multiple times #1654
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4 | |
- 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 -tags=next | |
# run: /app/bin/golangci-lint run -v ./... | |
- 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" |