Skip to content

Commit

Permalink
[#186]: feat(tests): move tests to the rr-e2e-tests repo
Browse files Browse the repository at this point in the history
  • Loading branch information
rustatian authored Feb 19, 2022
2 parents 685b681 + d6ae2e8 commit bdb18b5
Show file tree
Hide file tree
Showing 70 changed files with 8 additions and 4,103 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ jobs:
- name: Run linter
uses: golangci/golangci-lint-action@v2 # Action page: <https://github.com/golangci/golangci-lint-action>
with:
version: v1.43 # without patch version
version: v1.44 # without patch version
only-new-issues: false # show only new issues if it's a pull request
args: --timeout=10m --build-tags=safe
23 changes: 1 addition & 22 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ on:

jobs:
golang:
name: Build (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}})
name: Build (Go ${{ matrix.go }}, OS ${{matrix.os}})
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
fail-fast: true
matrix:
php: [ "8.1" ]
go: [ "1.17.7" ]
os: [ ubuntu-latest ]
steps:
Expand All @@ -31,29 +30,9 @@ jobs:
with:
go-version: ${{ matrix.go }}

- name: Set up PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2 # action page: <https://github.com/shivammathur/setup-php>
with:
php-version: ${{ matrix.php }}
extensions: sockets

- name: Check out code
uses: actions/checkout@v2

- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Init Composer Cache # Docs: <https://git.io/JfAKn#php---composer>
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ matrix.php }}-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install Composer dependencies
run: cd tests/php_test_files && composer update --prefer-dist --no-progress --ansi

- name: Init Go modules Cache # Docs: <https://git.io/JfAKn#go---modules>
uses: actions/cache@v2
with:
Expand Down
16 changes: 2 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,14 @@ install-dependencies:

# Run all tests and code-style checks
test:
docker-compose -f tests/env/docker-compose.yaml up -d --remove-orphans
sleep 20
go test -v -race -cover -tags=debug -failfast ./tests
go test -v -race -cover -tags=debug -failfast ./internal/data_converter
go test -v -race -cover -tags=debug -failfast ./workflow/canceller
go test -v -race -cover -tags=debug -failfast ./workflow/queue
docker compose -f tests/env/docker-compose.yaml down
go test -v -race -cover -tags=debug -failfast ./...

test_coverage:
docker-compose -f tests/env/docker-compose.yaml up -d --remove-orphans
rm -rf coverage-ci
mkdir ./coverage-ci
go test -v -race -cover -tags=debug -failfast -coverpkg=./... -coverprofile=./coverage-ci/temporal.out -covermode=atomic ./tests
go test -v -race -cover -tags=debug -failfast -coverpkg=./... -coverprofile=./coverage-ci/temporal_protocol.out -covermode=atomic ./internal/data_converter
go test -v -race -cover -tags=debug -failfast -coverpkg=./... -coverprofile=./coverage-ci/temporal_workflow.out -covermode=atomic ./workflow
go test -v -race -cover -tags=debug -failfast -coverpkg=./... -coverprofile=./coverage-ci/canceller.out -covermode=atomic ./workflow/canceller
go test -v -race -cover -tags=debug -failfast -coverpkg=./... -coverprofile=./coverage-ci/queue.out -covermode=atomic ./workflow/queue
go test -v -race -cover -tags=debug -failfast -coverpkg=./... -coverprofile=./coverage-ci/temporal.out -covermode=atomic ./...
echo 'mode: atomic' > ./coverage-ci/summary.txt
tail -q -n +2 ./coverage-ci/*.out >> ./coverage-ci/summary.txt
docker-compose -f tests/env/docker-compose.yaml down

generate-proto:
protoc -I./proto/api -I./proto --go_out=proto/protocol/v1 ./proto/protocol/v1/protocol.proto
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[![Linux](https://github.com/temporalio/roadrunner-temporal/workflows/Linux/badge.svg)](https://github.com/temporalio/roadrunner-temporal/actions)
[![codecov](https://codecov.io/gh/temporalio/roadrunner-temporal/branch/master/graph/badge.svg?token=i3oU4IKmba)](https://codecov.io/gh/temporalio/roadrunner-temporal)
[![Discourse](https://img.shields.io/static/v1?label=Discourse&message=Get%20Help&color=informational)](https://community.temporal.io)

# Roadrunner Temporal
Expand Down
File renamed without changes.
File renamed without changes.
29 changes: 2 additions & 27 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,9 @@ require (
github.com/goccy/go-json v0.9.4
github.com/golang/protobuf v1.5.2
github.com/google/uuid v1.3.0
github.com/pborman/uuid v1.2.1
github.com/roadrunner-server/api/v2 v2.10.0
github.com/roadrunner-server/config/v2 v2.9.1
github.com/roadrunner-server/endure v1.2.1
github.com/roadrunner-server/errors v1.1.1
github.com/roadrunner-server/goridge/v3 v3.3.1
github.com/roadrunner-server/informer/v2 v2.9.1
github.com/roadrunner-server/logger/v2 v2.9.1
github.com/roadrunner-server/resetter/v2 v2.9.1
github.com/roadrunner-server/rpc/v2 v2.9.1
github.com/roadrunner-server/sdk/v2 v2.10.0
github.com/roadrunner-server/server/v2 v2.9.3
github.com/stretchr/testify v1.7.0
github.com/uber-go/tally/v4 v4.1.1
go.temporal.io/api v1.7.0
Expand All @@ -29,26 +20,21 @@ require (
)

require (
github.com/pborman/uuid v1.2.1 // indirect
github.com/roadrunner-server/goridge/v3 v3.3.1 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cenkalti/backoff/v4 v4.1.2 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/facebookgo/clock v0.0.0-20150410010913-600d898af40a // indirect
github.com/fsnotify/fsnotify v1.5.1 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/gogo/googleapis v1.4.1 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/gogo/status v1.1.0 // indirect
github.com/golang/mock v1.6.0 // indirect
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect
github.com/hashicorp/go-version v1.4.0 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/magiconair/properties v1.8.5 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
github.com/mitchellh/mapstructure v1.4.3 // indirect
github.com/pelletier/go-toml v1.9.4 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_golang v1.12.1
Expand All @@ -58,18 +44,10 @@ require (
github.com/roadrunner-server/tcplisten v1.1.1 // indirect
github.com/robfig/cron v1.2.0 // indirect
github.com/shirou/gopsutil v3.21.11+incompatible // indirect
github.com/spf13/afero v1.8.1 // indirect
github.com/spf13/cast v1.4.1 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.10.1 // indirect
github.com/stretchr/objx v0.3.0 // indirect
github.com/subosito/gotenv v1.2.0 // indirect
github.com/tklauser/go-sysconf v0.3.9 // indirect
github.com/tklauser/numcpus v0.4.0 // indirect
github.com/twmb/murmur3 v1.1.6 // indirect
github.com/vmihailenco/msgpack/v5 v5.3.5 // indirect
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
github.com/yusufpapurcu/wmi v1.2.2 // indirect
go.uber.org/atomic v1.9.0 // indirect
go.uber.org/goleak v1.1.12 // indirect
Expand All @@ -81,8 +59,5 @@ require (
golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect
google.golang.org/genproto v0.0.0-20220218161850-94dd64e39d7c // indirect
google.golang.org/grpc v1.44.0 // indirect
gopkg.in/ini.v1 v1.66.4 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
)
Loading

0 comments on commit bdb18b5

Please sign in to comment.