mirror of
https://github.com/tuneinsight/lattigo.git
synced 2025-09-13 03:27:14 +00:00
36 lines
782 B
YAML
36 lines
782 B
YAML
name: CI Checks
|
|
on:
|
|
push:
|
|
jobs:
|
|
checks:
|
|
name: Run staticcheck
|
|
uses: dominikh/staticcheck-action@v1.2.0
|
|
with:
|
|
version: "2022.1"
|
|
tests:
|
|
name: Run Go ${{ matrix.go }} tests
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
go: [ '1.18', '1.17', '1.16', '1.15', '1.14', '1.13' ]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v1
|
|
with:
|
|
go-version: ${{ matrix.go }}
|
|
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: ~/go/pkg/mod
|
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-go-
|
|
|
|
- name: Build
|
|
run: go build ./...
|
|
|
|
- name: Run Makefile checks
|
|
run: make ci_tests
|