Skip to content

Commit

Permalink
ci: add new workflow for make test-short (backport #2367) (#2379)
Browse files Browse the repository at this point in the history
This is an automatic backport of pull request #2367 done by
[Mergify](https://mergify.com).


---


<details>
<summary>Mergify commands and options</summary>

<br />

More conditions and actions can be found in the
[documentation](https://docs.mergify.com/).

You can also trigger Mergify actions by commenting on this pull request:

- `@Mergifyio refresh` will re-evaluate the rules
- `@Mergifyio rebase` will rebase this PR on its base branch
- `@Mergifyio update` will merge the base branch into this PR
- `@Mergifyio backport <destination>` will backport this PR on
`<destination>` branch

Additionally, on Mergify [dashboard](https://dashboard.mergify.com) you
can:

- look at your merge queues
- generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com
</details>

---------

Co-authored-by: Tung Bui (Leo) <[email protected]>
Co-authored-by: Rootul P <[email protected]>
  • Loading branch information
3 people authored Oct 6, 2023
1 parent c8d95d8 commit dd4b1c1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ env:
GO_VERSION: '1.21.1'

jobs:
test-short:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

- name: Run tests in short mode
run: make test-short
timeout-minutes: 10

test:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ test:
## test-short: Run unit tests in short mode.
test-short:
@echo "--> Running tests in short mode"
@go test ./... -short
@go test ./... -short -timeout 1m
.PHONY: test-short

## test-race: Run unit tests in race mode.
Expand Down
3 changes: 3 additions & 0 deletions test/txsim/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ import (
)

func TestTxSimulator(t *testing.T) {
if testing.Short() {
t.Skip("skipping TestTxSimulator in short mode.")
}
testCases := []struct {
name string
sequences []txsim.Sequence
Expand Down

0 comments on commit dd4b1c1

Please sign in to comment.