From 5f78355e1e99fca506231be0878f405b3cadef47 Mon Sep 17 00:00:00 2001 From: Denis Palnitsky Date: Thu, 28 Apr 2022 15:24:45 +0200 Subject: [PATCH] Github-action --- .github/workflows/test.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..115a335 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,34 @@ +# 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: + build: + + name: build and test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.18 + + - name: lint + uses: golangci/golangci-lint-action@v2 + + - 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) +