Skip to content

Commit 9f27095

Browse files
committed
Avoid running several workflow runs on same branch at the same time
1 parent 9aa7586 commit 9f27095

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/run-tests.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ name: Run Tests
33
on:
44
- push
55
- pull_request
6+
concurrency:
7+
group: ci-${{ github.ref }}
8+
cancel-in-progress: true
69

710
jobs:
8-
911
build:
1012
runs-on: ubuntu-latest
1113
env:

tests/migrate_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,8 @@ func TestMigrateDonotAlterColumn(t *testing.T) {
11201120

11211121
var err error
11221122
err = mockM.DropTable(&NotTriggerUpdate{})
1123-
tests.AssertEqual(t, err, nil)
1123+
// DROP TABLE fails if the table does not exist.
1124+
// tests.AssertEqual(t, err, nil)
11241125
err = mockM.AutoMigrate(&NotTriggerUpdate{})
11251126
tests.AssertEqual(t, err, nil)
11261127
err = mockM.AutoMigrate(&NotTriggerUpdate{})

0 commit comments

Comments
 (0)