yay/.github/workflows/testing.yml

34 lines
859 B
YAML
Raw Normal View History

2020-01-12 16:16:04 +01:00
name: Build
# 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:
image: samip537/archlinux:devel
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: Run Build and tests
run: |
2020-02-28 00:08:35 +01:00
pacman -Sy --noconfirm go
2020-06-13 23:20:22 +02:00
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.27.0
2020-02-28 00:08:35 +01:00
./bin/golangci-lint run ./...
make test