-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from hellofresh/feature/github-actions-pipeline
Github Actions pipeline instead of Travis
- Loading branch information
Showing
15 changed files
with
256 additions
and
117 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,49 @@ | ||
name: Testing | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v2 | ||
|
||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
needs: [ lint ] | ||
|
||
services: | ||
postgres: | ||
image: postgres:10 | ||
ports: | ||
- "5432" | ||
env: | ||
POSTGRES_USER: goengine | ||
POSTGRES_PASSWORD: goengine | ||
POSTGRES_DB: goengine | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ^1.16 | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
- name: Run tests | ||
run: go test -cover ./... -coverprofile=coverage.txt -covermode=atomic | ||
env: | ||
POSTGRES_DSN: postgres://goengine:goengine@localhost:${{ job.services.postgres.ports[5432] }}/goengine?sslmode=disable |
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 was deleted.
Oops, something went wrong.
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
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
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,19 +1,19 @@ | ||
module github.com/hellofresh/goengine | ||
|
||
go 1.12 | ||
go 1.16 | ||
|
||
require ( | ||
github.com/DATA-DOG/go-sqlmock v1.3.0 | ||
github.com/golang/mock v1.2.0 | ||
github.com/google/uuid v1.0.0 | ||
github.com/lib/pq v1.0.0 | ||
github.com/mailru/easyjson v0.0.0-20190221075403-6243d8e04c3f | ||
github.com/pkg/errors v0.8.0 | ||
github.com/prometheus/client_golang v0.9.4 | ||
github.com/sirupsen/logrus v1.2.0 | ||
github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271 | ||
github.com/stretchr/testify v1.3.0 | ||
go.uber.org/atomic v1.3.2 // indirect | ||
go.uber.org/multierr v1.1.0 // indirect | ||
go.uber.org/zap v1.9.1 | ||
github.com/DATA-DOG/go-sqlmock v1.5.0 | ||
github.com/golang/mock v1.6.0 | ||
github.com/google/uuid v1.3.0 | ||
github.com/lib/pq v1.10.2 | ||
github.com/mailru/easyjson v0.7.7 | ||
github.com/prometheus/client_golang v1.11.0 | ||
github.com/sirupsen/logrus v1.8.1 | ||
github.com/streadway/amqp v1.0.0 | ||
github.com/stretchr/testify v1.7.0 | ||
go.uber.org/atomic v1.9.0 // indirect | ||
go.uber.org/multierr v1.7.0 // indirect | ||
go.uber.org/zap v1.19.0 | ||
golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf // indirect | ||
) |
Oops, something went wrong.