-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
5,681 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,8 @@ on: | |
- main | ||
pull_request: | ||
jobs: | ||
golangci: | ||
name: golangci-lint | ||
lint: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -36,3 +36,9 @@ jobs: | |
|
||
# Optional: if set to true then the action don't cache or restore ~/.cache/go-build. | ||
# skip-build-cache: true | ||
|
||
- name: gherkin-lint | ||
uses: nhatthm/[email protected] | ||
with: | ||
feature_files: tests/features/* | ||
config_file: tests/.gherkin-lintrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: test | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
env: | ||
GO111MODULE: "on" | ||
|
||
jobs: | ||
compatibility-test-libpq: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
go-version: [ 1.16.x, 1.17.x ] | ||
arch: [ "386", amd64 ] | ||
postgres-version: [ "12", "13", "14" ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Go cache | ||
uses: actions/cache@v2 | ||
with: | ||
# In order: | ||
# * Module download cache | ||
# * Build cache (Linux) | ||
path: | | ||
~/go/pkg/mod | ||
~/.cache/go-build | ||
key: ${{ runner.os }}-go-${{ matrix.go-version }}-compatibility-postgres-cache-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go-${{ matrix.go-version }}-compatibility-postgres-cache | ||
- name: Test | ||
id: test | ||
env: | ||
GOARCH: ${{ matrix.arch }} | ||
COMPATIBILITY_TEST: postgres | ||
POSTGRES_VERSION: ${{ matrix.postgres-version }}-alpine | ||
POSTGRES_DRIVER: postgres | ||
run: | | ||
make test-compatibility |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: test | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
env: | ||
GO111MODULE: "on" | ||
|
||
jobs: | ||
compatibility-test-pgx: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
go-version: [ 1.16.x, 1.17.x ] | ||
arch: [ "386", amd64 ] | ||
postgres-version: [ "12", "13", "14" ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Go cache | ||
uses: actions/cache@v2 | ||
with: | ||
# In order: | ||
# * Module download cache | ||
# * Build cache (Linux) | ||
path: | | ||
~/go/pkg/mod | ||
~/.cache/go-build | ||
key: ${{ runner.os }}-go-${{ matrix.go-version }}-compatibility-postgres-cache-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go-${{ matrix.go-version }}-compatibility-postgres-cache | ||
- name: Test | ||
id: test | ||
env: | ||
GOARCH: ${{ matrix.arch }} | ||
COMPATIBILITY_TEST: postgres | ||
POSTGRES_VERSION: ${{ matrix.postgres-version }}-alpine | ||
POSTGRES_DRIVER: pgx | ||
run: | | ||
make test-compatibility |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,6 @@ | |
*.out | ||
|
||
# Dependency directories (remove the comment below to include it) | ||
/vendor | ||
vendor | ||
|
||
*.coverprofile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
ignore: | ||
- "features/**/*" | ||
- "internal/**/*" | ||
- "tests/**/*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
{ | ||
"file-name": [ | ||
"on", | ||
{ | ||
"style": "PascalCase" | ||
} | ||
], | ||
"no-files-without-scenarios": "on", | ||
"no-unnamed-features": "on", | ||
"no-unnamed-scenarios": "on", | ||
"no-dupe-scenario-names": [ | ||
"on", | ||
"in-feature" | ||
], | ||
"no-dupe-feature-names": "on", | ||
"no-partially-commented-tag-lines": "on", | ||
"indentation": [ | ||
"on", | ||
{ | ||
"Feature": 0, | ||
"Background": 4, | ||
"Scenario": 4, | ||
"Step": 8, | ||
"Examples": 8, | ||
"example": 12, | ||
"given": 8, | ||
"when": 8, | ||
"then": 8, | ||
"and": 8, | ||
"but": 8, | ||
"feature tag": 0, | ||
"scenario tag": 4 | ||
} | ||
], | ||
"no-trailing-spaces": "on", | ||
"new-line-at-eof": [ | ||
"on", | ||
"yes" | ||
], | ||
"no-multiple-empty-lines": "on", | ||
"no-empty-file": "on", | ||
"no-scenario-outlines-without-examples": "on", | ||
"name-length": [ | ||
"on", | ||
{ | ||
"Feature": 120, | ||
"Scenario": 120, | ||
"Step": 120 | ||
} | ||
], | ||
"no-restricted-tags": [ | ||
"on", | ||
{ | ||
"tags": [ | ||
"@dev", | ||
"@watch", | ||
"@wip" | ||
] | ||
} | ||
], | ||
"use-and": "on", | ||
"no-duplicate-tags": "on", | ||
"no-superfluous-tags": "on", | ||
"no-homogenous-tags": "on", | ||
"one-space-between-tags": "on", | ||
"no-unused-variables": "on", | ||
"no-background-only-scenario": "on", | ||
"no-empty-background": "on", | ||
"scenario-size": [ | ||
"on", | ||
{ | ||
"steps-length": { | ||
"Background": 30, | ||
"Scenario": 30 | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.