mirror of
https://github.com/foomo/keel.git
synced 2025-10-16 12:35:34 +00:00
34 lines
601 B
YAML
34 lines
601 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
GOFLAGS: -mod=readonly
|
|
GOPROXY: https://proxy.golang.org
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Unshallow
|
|
run: git fetch --prune --unshallow
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.17
|
|
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@v2
|
|
with:
|
|
skip-go-installation: true
|
|
|
|
- name: Test
|
|
run: go test ./...
|