yay/.github/workflows/testing.yml
2020-09-08 00:02:28 +02:00

32 lines
724 B
YAML

name: Build
# This workflow is triggered on pushes to the repository.
on:
push:
paths-ignore:
- "doc/**"
- "README.md"
- ".gitignore"
branches-ignore:
- "master"
pull_request:
jobs:
build:
name: Lint and test yay
runs-on: ubuntu-latest
container:
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-
- name: Lint
run: /app/bin/golangci-lint run ./...
- name: Run Build and Tests
run: make test