Skip to content

Commit

Permalink
Change how tests are run
Browse files Browse the repository at this point in the history
  • Loading branch information
t0yv0 committed Aug 25, 2023
1 parent 3f56345 commit f5e308b
Show file tree
Hide file tree
Showing 12 changed files with 96 additions and 6 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,13 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: v2.4.0
- name: Run tests
- name: Run short tests
run: cd tests && go test -v -short -json -count=1 -cover -timeout 2h -tags=${{
matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt
- name: Run acceptance tests
run: cd tests && go test -v -json -count=1 -cover -timeout 2h -tags=${{
matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt
- name: Run examples as acceptance tests
run: cd examples && go test -v -json -count=1 -cover -timeout 2h -tags=${{
matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt
- if: failure() && github.event_name == 'push'
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,13 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: v2.4.0
- name: Run tests
- name: Run short tests
run: cd tests && go test -v -short -json -count=1 -cover -timeout 2h -tags=${{
matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt
- name: Run acceptance tests
run: cd tests && go test -v -json -count=1 -cover -timeout 2h -tags=${{
matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt
- name: Run examples as acceptance tests
run: cd examples && go test -v -json -count=1 -cover -timeout 2h -tags=${{
matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt
- if: failure() && github.event_name == 'push'
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/nightly-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,13 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: v2.4.0
- name: Run tests
- name: Run short tests
run: cd tests && go test -v -short -json -count=1 -cover -timeout 2h -tags=${{
matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt
- name: Run acceptance tests
run: cd tests && go test -v -json -count=1 -cover -timeout 2h -tags=${{
matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt
- name: Run examples as acceptance tests
run: cd examples && go test -v -json -count=1 -cover -timeout 2h -tags=${{
matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt
- if: failure() && github.event_name == 'push'
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,13 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: v2.4.0
- name: Run tests
- name: Run short tests
run: cd tests && go test -v -short -json -count=1 -cover -timeout 2h -tags=${{
matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt
- name: Run acceptance tests
run: cd tests && go test -v -json -count=1 -cover -timeout 2h -tags=${{
matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt
- name: Run examples as acceptance tests
run: cd examples && go test -v -json -count=1 -cover -timeout 2h -tags=${{
matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt
- if: failure() && github.event_name == 'push'
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,13 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: v2.4.0
- name: Run tests
- name: Run short tests
run: cd tests && go test -v -short -json -count=1 -cover -timeout 2h -tags=${{
matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt
- name: Run acceptance tests
run: cd tests && go test -v -json -count=1 -cover -timeout 2h -tags=${{
matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt
- name: Run examples as acceptance tests
run: cd examples && go test -v -json -count=1 -cover -timeout 2h -tags=${{
matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt
- if: failure() && github.event_name == 'push'
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/run-acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,13 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: v2.4.0
- name: Run tests
- name: Run short tests
run: cd tests && go test -v -short -json -count=1 -cover -timeout 2h -tags=${{
matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt
- name: Run acceptance tests
run: cd tests && go test -v -json -count=1 -cover -timeout 2h -tags=${{
matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt
- name: Run examples as acceptance tests
run: cd examples && go test -v -json -count=1 -cover -timeout 2h -tags=${{
matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt
- if: failure() && github.event_name == 'push'
Expand Down
9 changes: 9 additions & 0 deletions tests/dotnet/dotnet_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package dotnet

import (
"testing"
)

func TestDotnetPlaceholder(t *testing.T) {
t.Logf("Testing")
}
9 changes: 9 additions & 0 deletions tests/go/go_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package golang

import (
"testing"
)

func TestGoPlaceholder(t *testing.T) {
t.Logf("Testing")
}
9 changes: 9 additions & 0 deletions tests/java/java_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package java

import (
"testing"
)

func TestJavaPlaceholder(t *testing.T) {
t.Logf("Testing")
}
9 changes: 9 additions & 0 deletions tests/nodejs/node_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package nodejs

import (
"testing"
)

func TestNodeJSPlaceholder(t *testing.T) {
t.Logf("Testing")
}
9 changes: 9 additions & 0 deletions tests/python/python_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package python

import (
"testing"
)

func TestPythonPlaceholder(t *testing.T) {
t.Logf("Testing")
}
9 changes: 9 additions & 0 deletions tests/yaml/yaml_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package yaml

import (
"testing"
)

func TestYamlPlaceholder(t *testing.T) {
t.Logf("Testing")
}

0 comments on commit f5e308b

Please sign in to comment.