-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into timeout-duration
- Loading branch information
Showing
125 changed files
with
3,418 additions
and
939 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
FROM mcr.microsoft.com/vscode/devcontainers/go:0-1.18 |
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,29 @@ | ||
{ | ||
"name": "Quickfix/Go Development", | ||
"dockerComposeFile": "docker-compose.yml", | ||
"service": "app", | ||
"workspaceFolder": "/workspace", | ||
"shutdownAction": "stopCompose", | ||
"runArgs": [ | ||
"--cap-add=SYS_PTRACE", | ||
"--security-opt", | ||
"seccomp=unconfined" | ||
], | ||
"features": { | ||
"ruby": "latest" | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"go.toolsManagement.checkForUpdates": "local", | ||
"go.useLanguageServer": true, | ||
"go.gopath": "/go" | ||
}, | ||
"extensions": [ | ||
"golang.Go", | ||
"mongodb.mongodb-vscode" | ||
] | ||
} | ||
}, | ||
"remoteUser": "vscode" | ||
} |
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,38 @@ | ||
version: '3.8' | ||
|
||
services: | ||
app: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.dev | ||
volumes: | ||
- ..:/workspace:cached | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
# Overrides default command so things don't shut down after the process ends. | ||
command: sleep infinity | ||
|
||
# Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function. | ||
network_mode: service:db | ||
|
||
# Uncomment the next line to use a non-root user for all processes. | ||
# user: node | ||
|
||
# Use "forwardPorts" in **devcontainer.json** to forward an app port locally. | ||
# (Adding the "ports" property to this file will not forward from a Codespace.) | ||
|
||
db: | ||
image: bitnami/mongodb:latest | ||
restart: unless-stopped | ||
volumes: | ||
- mongodb-data:/data/db | ||
ports: | ||
- 27017:27017 | ||
environment: | ||
MONGODB_REPLICA_SET_MODE: primary | ||
ALLOW_EMPTY_PASSWORD: 'yes' | ||
|
||
# Add "forwardPorts": ["27017"] to **devcontainer.json** to forward MongoDB locally. | ||
# (Adding the "ports" property to this file will not forward from a Codespace.) | ||
|
||
volumes: | ||
mongodb-data: |
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 |
---|---|---|
|
@@ -10,44 +10,68 @@ on: | |
branches: | ||
- master | ||
- main | ||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
golangci: | ||
name: lint | ||
permissions: | ||
contents: read # for actions/checkout to fetch code | ||
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests | ||
name: Linter | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v2 | ||
- name: Checkout source code | ||
uses: actions/checkout@v2 | ||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
version: v1.41 | ||
go-version: '1.18' | ||
- name: Install golangci-lint | ||
run: | | ||
curl -sSLO https://github.com/golangci/golangci-lint/releases/download/v$GOLANGCI_LINT_VERSION/golangci-lint-$GOLANGCI_LINT_VERSION-linux-amd64.tar.gz | ||
tar -xf golangci-lint-$GOLANGCI_LINT_VERSION-linux-amd64.tar.gz | ||
sudo mv golangci-lint-$GOLANGCI_LINT_VERSION-linux-amd64/golangci-lint /usr/local/bin/golangci-lint | ||
rm -rf golangci-lint-$GOLANGCI_LINT_VERSION-linux-amd64* | ||
env: | ||
GOLANGCI_LINT_VERSION: '1.50.1' | ||
- name: Run Lint | ||
run: make lint | ||
|
||
build: | ||
name: build | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
go: [1.16] | ||
go: [1.18] | ||
fix-version: | ||
- FIX_TEST= | ||
- FIX_TEST=fix40 | ||
- FIX_TEST=fix41 | ||
- FIX_TEST=fix42 | ||
- FIX_TEST=fix43 | ||
- FIX_TEST=fix44 | ||
- FIX_TEST=fix50 | ||
- FIX_TEST=fix50sp1 | ||
- FIX_TEST=fix50sp2 | ||
- | ||
- fix40 | ||
- fix41 | ||
- fix42 | ||
- fix43 | ||
- fix44 | ||
- fix50 | ||
- fix50sp1 | ||
- fix50sp2 | ||
steps: | ||
- name: Setup | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
- name: Check out source | ||
uses: actions/checkout@v2 | ||
- name: Run Mongo | ||
run: docker run -d -p 27017:27017 mongo | ||
- name: Start MongoDB | ||
uses: supercharge/[email protected] | ||
with: | ||
mongodb-replica-set: replicaset | ||
- name: Install ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.0' | ||
- name: Test | ||
env: | ||
GO111MODULE: "on" | ||
MONGODB_TEST_CXN: "localhost" | ||
run: make generate; if [ -z "$FIX_TEST" ]; then make build; make; else make build_accept; make $FIX_TEST; fi | ||
GO111MODULE: on | ||
MONGODB_TEST_CXN: mongodb://localhost:27017 | ||
FIX_TEST: ${{ matrix.fix-version }} | ||
run: if [ -z $FIX_TEST ]; then make build-src && make test-ci; else make generate-ci && make build && make $FIX_TEST; fi |
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,28 @@ | ||
run: | ||
timeout: 10m | ||
skip-dirs: | ||
- gen | ||
- vendor | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- dupl | ||
- gofmt | ||
- goimports | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- misspell | ||
- revive | ||
- unused | ||
- staticcheck | ||
- godot | ||
|
||
linters-settings: | ||
gofmt: | ||
simplify: true | ||
goimports: | ||
local-prefixes: github.com/quickfixgo/quickfix | ||
dupl: | ||
threshold: 400 |
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
Oops, something went wrong.