add nilaway #126
Workflow file for this run
This file contains 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: | |
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 | |
# TODO: fix | |
# - name: Upload coverage to Codecov | |
# uses: codecov/codecov-action@v4 | |
# with: | |
# files: ./coverage.txt | |
# fail_ci_if_error: true | |
# token: ${{ secrets.CODECOV_TOKEN }} | |
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 |