add test to CI for example directory

This commit is contained in:
Dmitry Verkhoturov
2024-05-09 17:44:28 +02:00
committed by Umputun
parent 30173d599c
commit 899e101d7a
6 changed files with 16 additions and 21 deletions

View File

@@ -13,10 +13,6 @@ updates:
"GitHub Actions updates":
patterns:
- "*"
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "monthly"
- package-ecosystem: "gomod"
directory: "/"
schedule:
@@ -24,8 +20,6 @@ updates:
groups:
"Go modules updates":
dependency-type: "production"
"Go modules updates for tests":
dependency-type: "development"
- package-ecosystem: "gomod"
directory: "/examples/plugin"
schedule:
@@ -33,5 +27,3 @@ updates:
groups:
"Go modules updates":
dependency-type: "production"
"Go modules updates for tests":
dependency-type: "development"

View File

@@ -22,12 +22,20 @@ jobs:
- name: build and test
run: |
go test -v -timeout=100s -covermode=count -coverprofile=$GITHUB_WORKSPACE/profile.cov_tmp ./...
go test -race -v -timeout=100s -covermode=atomic -coverprofile=$GITHUB_WORKSPACE/profile.cov_tmp ./...
go build -race ./...
cat $GITHUB_WORKSPACE/profile.cov_tmp | grep -v "mocks" | grep -v "_mock" > $GITHUB_WORKSPACE/profile.cov
working-directory: app
env:
TZ: "America/Chicago"
- name: test examples
run: |
go test -race ./...
go build -race ./...
working-directory: examples/plugin
env:
TZ: "America/Chicago"
- name: golangci-lint
uses: golangci/golangci-lint-action@v6