Update .gitea/workflows/go-test.yml
Some checks failed
CI Demo / build (push) Successful in 4s
Docker Test / docker-ops (push) Successful in 5s
.NET Test / dotnet-test (push) Failing after 18s
Go Test / go-test (push) Failing after 5s
Java Test / java-hello (push) Successful in 33s
Julia Test / julia-test (push) Failing after 5s
Kotlin Test / kotlin-hello (push) Successful in 39s
Node.js Test / nodejs-test (push) Failing after 6s
Notebook Test / nb-test (push) Failing after 8s
PHP Test / php-test (push) Successful in 36s
Python Test / python-hello (push) Successful in 4s
Rust Test / rust-test (push) Has been cancelled
Scala Test / scala-test (push) Has been cancelled
Swift Test / swift-hello (push) Has been cancelled
R Test / r-cmdcheck (push) Has been cancelled
Some checks failed
CI Demo / build (push) Successful in 4s
Docker Test / docker-ops (push) Successful in 5s
.NET Test / dotnet-test (push) Failing after 18s
Go Test / go-test (push) Failing after 5s
Java Test / java-hello (push) Successful in 33s
Julia Test / julia-test (push) Failing after 5s
Kotlin Test / kotlin-hello (push) Successful in 39s
Node.js Test / nodejs-test (push) Failing after 6s
Notebook Test / nb-test (push) Failing after 8s
PHP Test / php-test (push) Successful in 36s
Python Test / python-hello (push) Successful in 4s
Rust Test / rust-test (push) Has been cancelled
Scala Test / scala-test (push) Has been cancelled
Swift Test / swift-hello (push) Has been cancelled
R Test / r-cmdcheck (push) Has been cancelled
This commit is contained in:
@@ -17,6 +17,7 @@ jobs:
|
||||
run: go version
|
||||
|
||||
- name: Run tests (use module/workspace if present; else fallback)
|
||||
shell: bash
|
||||
run: |
|
||||
set -e
|
||||
if [ -f go.mod ] || [ -f go.work ]; then
|
||||
@@ -29,11 +30,11 @@ jobs:
|
||||
import "fmt"
|
||||
func main(){ fmt.Println("hello") }
|
||||
EOF
|
||||
cat > main_test.go <<'EOF'
|
||||
cat > main_test.go <<'EOF'
|
||||
package main
|
||||
import "testing"
|
||||
func TestMath(t *testing.T){ if 2+2 != 4 { t.Fatal("bad math") } }
|
||||
EOF
|
||||
go mod init example.com/ci
|
||||
go test ./...
|
||||
fi
|
||||
fi
|
||||
|
Reference in New Issue
Block a user