go-rln/.github/workflows/ci.yml

34 lines
686 B
YAML
Raw Normal View History

2021-09-13 21:19:40 +00:00
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
test:
strategy:
matrix:
go-version: [1.16.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test ./...
lint:
strategy:
matrix:
go-version: [1.15.x, 1.16.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@master
- uses: reviewdog/action-golangci-lint@v1