Use run_tests.sh in CI because the official golangci-lint GitHub action does not handle submodules.
23 lines
714 B
YAML
23 lines
714 B
YAML
name: Build and Test
|
|
on: [push, pull_request]
|
|
jobs:
|
|
build:
|
|
name: Go CI
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
go: [1.18, 1.19]
|
|
steps:
|
|
- name: Set up Go
|
|
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f #v3.3.1
|
|
with:
|
|
go-version: ${{ matrix.go }}
|
|
- name: Check out source
|
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 #v3.1.0
|
|
- name: Build
|
|
run: go build ./...
|
|
- name: Install Linters
|
|
run: "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.1"
|
|
- name: Test and Lint
|
|
run: ./run_tests.sh
|