mirror of
https://github.com/kemko/reproxy.git
synced 2026-01-01 15:55:49 +03:00
add test to CI for example directory
This commit is contained in:
committed by
Umputun
parent
30173d599c
commit
899e101d7a
8
.github/dependabot.yml
vendored
8
.github/dependabot.yml
vendored
@@ -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"
|
||||
|
||||
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user