skip integration test in GH actions
This commit is contained in:
parent
4b61fb3bc3
commit
eed58492aa
3 changed files with 16 additions and 1 deletions
2
.github/actions/check/entrypoint.sh
vendored
2
.github/actions/check/entrypoint.sh
vendored
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
golangci-lint run
|
golangci-lint run
|
||||||
go test -cover ./...
|
go test -cover -short ./...
|
|
@ -9,6 +9,10 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestRunEvent(t *testing.T) {
|
func TestRunEvent(t *testing.T) {
|
||||||
|
if testing.Short() {
|
||||||
|
t.Skip("skipping integration test")
|
||||||
|
}
|
||||||
|
|
||||||
tables := []struct {
|
tables := []struct {
|
||||||
workflowPath string
|
workflowPath string
|
||||||
eventName string
|
eventName string
|
||||||
|
@ -18,6 +22,8 @@ func TestRunEvent(t *testing.T) {
|
||||||
{"pipe.workflow", "push", ""},
|
{"pipe.workflow", "push", ""},
|
||||||
{"fail.workflow", "push", "exit with `FAILURE`: 1"},
|
{"fail.workflow", "push", "exit with `FAILURE`: 1"},
|
||||||
{"regex.workflow", "push", "exit with `NEUTRAL`: 78"},
|
{"regex.workflow", "push", "exit with `NEUTRAL`: 78"},
|
||||||
|
{"gitref.workflow", "push", ""},
|
||||||
|
{"env.workflow", "push", ""},
|
||||||
}
|
}
|
||||||
log.SetLevel(log.DebugLevel)
|
log.SetLevel(log.DebugLevel)
|
||||||
|
|
||||||
|
|
9
actions/testdata/env.workflow
vendored
Normal file
9
actions/testdata/env.workflow
vendored
Normal 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$'"]
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue