You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
960 B
YAML

3 years ago
# THIS FILE IS GENERATED AUTOMATICALLY BY RUNNING gen-workflow.sh
# DON'T CHANGE IT MANUALLY TO AVOID YOUR CHANGES BEING OVERWRITTEN
# USE workflow-template.yaml FOR MAKING CHANGES IN WORKFLOWS
name: build-common
on:
push:
jobs:
test:
name: test
3 years ago
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Test
run: go test -v ./... -coverprofile="coverage.out"
- uses: codecov/codecov-action@v2
with:
files: coverage.out
flags: unittests # optional
name: go-cache
fail_ci_if_error: true # optional (default = false)
verbose: false # optional (default = false)
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: dominikh/staticcheck-action@v1.1.0
with:
version: "2022.1.1"