yay/.github/workflows/testing.yml

31 lines
737 B
YAML
Raw Normal View History

name: Test against pacman
# This workflow is triggered on pushes to the repository.
on:
push:
paths-ignore:
- "doc/**"
- "README.md"
- ".gitignore"
2020-06-13 23:20:22 +02:00
branches-ignore:
- "master"
pull_request:
jobs:
build:
2020-02-28 00:08:35 +01:00
name: Lint and test yay
runs-on: ubuntu-latest
container:
2020-09-08 00:02:28 +02: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-08 00:02:28 +02:00
- name: Lint
run: /app/bin/golangci-lint run ./...
- name: Run Build and Tests
run: make test