Skip to content

Commit

Permalink
CI: don't run mutate test when pr is draft. (#3338)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoucheng361 authored Mar 16, 2023
1 parent 0b10e1d commit 680b8fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/mutate-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ jobs:
matrix: ${{ steps.set-matrix.outputs.matrix }}

mutate-test:
if: "!github.event.pull_request.draft"
name: ${{matrix.test_file}}
needs: build-matrix
strategy:
Expand Down Expand Up @@ -202,7 +203,7 @@ jobs:
success-all-test:
runs-on: ubuntu-20.04
needs: [build-matrix, mutate-test]
if: always()
if: always() && !github.event.pull_request.draft
steps:
- uses: technote-space/workflow-conclusion-action@v3
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func TestTimeout(t *testing.T) {
return nil
}, time.Millisecond*10)
if err == nil || !strings.HasPrefix(err.Error(), "timeout after") {
t.Fatalf("slow function should be timeout: %s", err)
t.Fatalf("slow function should be timeout: %s", err)
}
}

Expand Down

0 comments on commit 680b8fb

Please sign in to comment.