From 64ab03fedf4c6ba9e35ac58179be572303dc7688 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Mon, 1 Feb 2021 10:49:49 +0300 Subject: Update temporal plugin Update .dockerignore (remove ghost folders) --- .dockerignore | 7 +------ cmd/go.mod | 2 +- cmd/go.sum | 4 ++-- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.dockerignore b/.dockerignore index bfa82a3d..a570712f 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,10 +1,5 @@ .dockerignore .git .gitignore -.editorconfig .github -/src -/tests -/bin -composer.json -vendor_php \ No newline at end of file +/bin \ No newline at end of file diff --git a/cmd/go.mod b/cmd/go.mod index fe684677..b6910fd3 100644 --- a/cmd/go.mod +++ b/cmd/go.mod @@ -11,7 +11,7 @@ require ( github.com/spiral/errors v1.0.9 github.com/spiral/goridge/v3 v3.0.0 github.com/spiral/roadrunner/v2 v2.0.0-beta19 - github.com/temporalio/roadrunner-temporal v1.0.0-beta2 + github.com/temporalio/roadrunner-temporal v1.0.0-beta.3 github.com/vbauerster/mpb/v5 v5.4.0 go.uber.org/multierr v1.6.0 ) diff --git a/cmd/go.sum b/cmd/go.sum index 2966eca9..0981c43e 100644 --- a/cmd/go.sum +++ b/cmd/go.sum @@ -457,8 +457,8 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s= github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= -github.com/temporalio/roadrunner-temporal v1.0.0-beta2 h1:1npTp/Je1yybBqcwcknpqFgpyBYWwZyPpH8YjTbOA3U= -github.com/temporalio/roadrunner-temporal v1.0.0-beta2/go.mod h1:/YtEJ4enOQA2zHDzMeOa6EzLxGFEnNSvpIqTjxmvpWM= +github.com/temporalio/roadrunner-temporal v1.0.0-beta.3 h1:XDNLE8Bf3zEAGtKXisfEaU674j0OQlL2M10/p8P0zF8= +github.com/temporalio/roadrunner-temporal v1.0.0-beta.3/go.mod h1:/YtEJ4enOQA2zHDzMeOa6EzLxGFEnNSvpIqTjxmvpWM= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/uber-go/tally v3.3.17+incompatible h1:nFHIuW3VQ22wItiE9kPXic8dEgExWOsVOHwpmoIvsMw= -- cgit v1.2.3 From 709ec9faf47f63d71c3509c4814ffc0f08872ee7 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Mon, 1 Feb 2021 10:59:11 +0300 Subject: Add CI to make sure, that binary can be built --- .github/workflows/build.yaml | 57 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 00000000..91e9931b --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,57 @@ +name: Linux + +on: + push: + pull_request: + branches: + # Branches from forks have the form 'user:branch-name' so we only run + # this job on pull_request events for branches that look like fork + # branches. Without this we would end up running this job twice for non + # forked PRs, once for the push and then once for opening the PR. + - "**:**" + +jobs: + golang: + name: Build (Go ${{ matrix.go }}, OS ${{matrix.os}}) + runs-on: ${{ matrix.os }} + timeout-minutes: 60 + strategy: + fail-fast: false + matrix: + go: [ "1.14", "1.15" ] + os: [ ubuntu-20.04 ] + steps: + - name: Set up Go ${{ matrix.go }} + uses: actions/setup-go@v2 # action page: + with: + go-version: ${{ matrix.go }} + + - name: Check out code + uses: actions/checkout@v2 + + - name: Init Go modules Cache # Docs: + uses: actions/cache@v2 + with: + path: ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: ${{ runner.os }}-go- + + - name: Install Go dependencies + run: cd cmd && go mod download && go mod verify + + - name: Build + run: cd cmd && go build + + + golangci-lint: + name: Golang-CI (lint) + runs-on: ubuntu-20.04 + steps: + - name: Check out code + uses: actions/checkout@v2 + + - name: Run linter + uses: golangci/golangci-lint-action@v2 # Action page: + with: + version: v1.35 # without patch version + only-new-issues: false # show only new issues if it's a pull request -- cgit v1.2.3 From 6535c1cab2df8150c8d32ed440a11eb275009d99 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Mon, 1 Feb 2021 11:01:52 +0300 Subject: Add workdir to the golangci linter --- .github/workflows/build.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 91e9931b..562bdce5 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -53,5 +53,6 @@ jobs: - name: Run linter uses: golangci/golangci-lint-action@v2 # Action page: with: + working-directory: cmd version: v1.35 # without patch version only-new-issues: false # show only new issues if it's a pull request -- cgit v1.2.3