Skip to content

add nilaway

add nilaway #123

Workflow file for this run

name: CI
on:
push:
tags:
- v*
branches:
- master
pull_request:
jobs:
unit-tests:
name: unit-tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Install Go
uses: actions/setup-go@v4
with:
go-version-file: ./go.mod
cache: true # caching and restoring go modules and build outputs
- name: Test
run: make test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./coverage.txt
fail_ci_if_error: true
lint:
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Install Go
uses: actions/setup-go@v4
with:
go-version-file: ./go.mod
cache: true # caching and restoring go modules and build outputs
- name: Check that 'go mod tidy' was called before commit
run: go mod tidy && git diff --exit-code
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.52
skip-cache: true # cache/restore is done by actions/setup-go step