CI #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: CI | |
on: | |
push: | |
tags: | |
- v* | |
branches: | |
- master | |
pull_request: | |
jobs: | |
golangci-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: lint | |
uses: golangci/[email protected] | |
with: | |
version: v1.40.1 | |
tests-on-unix: | |
needs: golangci-lint # run after golangci-lint action to not produce duplicated errors | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
golang: | |
- 1.15 | |
- 1.16 | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.golang }} | |
- name: Cache Dependencies | |
uses: actions/[email protected] | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ matrix.golang }}-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go-${{ matrix.golang }}- | |
- name: Run tests | |
run: make test |