yay/.github/workflows/testing.yml
Jo 4e3c664ab3
ci(yay) : attempt to use caches more effectively in CI (#1862)
* attempt to use caches more effectively

* fix cache key

* specify cache file
2022-12-18 20:42:22 +00:00

27 lines
628 B
YAML

name: Test against pacman
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:
- 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
run: /app/bin/golangci-lint run ./...
- name: Run Build and Tests
run: make test