1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-08-06 17:40:58 +00:00

skip integration test in GH actions

This commit is contained in:
Casey Lee 2019-02-07 09:09:19 -08:00
parent eb25b2a615
commit 02b27d9b70
3 changed files with 16 additions and 1 deletions

View file

@ -1,4 +1,4 @@
#!/bin/sh
set -e
golangci-lint run
go test -cover ./...
go test -cover -short ./...

View file

@ -9,6 +9,10 @@ import (
)
func TestRunEvent(t *testing.T) {
if testing.Short() {
t.Skip("skipping integration test")
}
tables := []struct {
workflowPath string
eventName string
@ -18,6 +22,8 @@ func TestRunEvent(t *testing.T) {
{"pipe.workflow", "push", ""},
{"fail.workflow", "push", "exit with `FAILURE`: 1"},
{"regex.workflow", "push", "exit with `NEUTRAL`: 78"},
{"gitref.workflow", "push", ""},
{"env.workflow", "push", ""},
}
log.SetLevel(log.DebugLevel)

9
actions/testdata/env.workflow vendored Normal file
View file

@ -0,0 +1,9 @@
workflow "test" {
on = "push"
resolves = ["test-action"]
}
action "test-action" {
uses = "docker://alpine:3.9"
runs = ["sh", "-c", "echo $GITHUB_REPOSITORY | grep '^nektos/act$'"]
}