chore(deps): bump github.com/roadrunner-server/sqs/v4 from 4.5.3 to 4.5.4 #1035
Workflow file for this run
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
name: linux_on_push | |
on: | |
push: | |
branches: | |
- master | |
- stable | |
pull_request: | |
branches: | |
- master | |
- stable | |
jobs: | |
temporal_test: | |
name: Temporal plugin (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
run: | | |
docker-compose -f env/docker-compose-temporal.yaml up -d --remove-orphans | |
mkdir ./coverage-ci | |
sleep 30 | |
go test -v -race -cover -tags=debug -coverpkg=$(cat pkgs.txt) -failfast -coverprofile=./coverage-ci/temporal.out -covermode=atomic ./plugins/temporal | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/temporal.out | |
temporal_tls_test: | |
name: Temporal plugin TLS (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
run: | | |
./env/temporal_tls/generate-test-certs.sh | |
export TEMPORAL_TLS_CERTS_DIR=/etc/temporal/config/certs | |
export TEMPORAL_LOCAL_CERT_DIR=$(pwd)/env/temporal_tls/certs | |
docker-compose -f env/temporal_tls/docker-compose.yml up -d --remove-orphans | |
mkdir ./coverage-ci | |
sleep 60 | |
go test -v -race -cover -tags=debug -coverpkg=$(cat pkgs.txt) -failfast -coverprofile=./coverage-ci/temporal_tls.out -covermode=atomic ./plugins/temporal/tls | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/temporal_tls.out | |
centrifugo_test: | |
name: Service plugin (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- name: Increase FD limit | |
run: | | |
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | |
ulimit -n 5000 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
run: | | |
mkdir ./coverage-ci | |
go test -v -race -cover -tags=debug -coverpkg=$(cat pkgs.txt) -failfast -coverprofile=./coverage-ci/centrifugo.out -covermode=atomic ./plugins/centrifugo | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/centrifugo.out | |
service_test: | |
name: Service plugin (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- name: Increase FD limit | |
run: | | |
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | |
ulimit -n 5000 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
run: | | |
mkdir ./coverage-ci | |
go test -v -race -cover -tags=debug -coverpkg=$(cat pkgs.txt) -failfast -coverprofile=./coverage-ci/service.out -covermode=atomic ./plugins/service | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/service.out | |
service_unit_test: | |
name: Service plugin unit (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
with: | |
repository: 'roadrunner-server/service' | |
- name: Init Go modules Cache # Docs: <https://git.io/JfAKn#go---modules> | |
uses: actions/cache@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
run: | | |
mkdir ./coverage-ci | |
go test -v -race -cover -tags=debug -coverpkg=$(cat pkgs.txt) -failfast -coverprofile=./coverage-ci/service_unit.out -covermode=atomic ./... | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/service_unit.out | |
http_unit_test: | |
name: http plugin unit (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
with: | |
repository: 'roadrunner-server/service' | |
- name: Init Go modules Cache # Docs: <https://git.io/JfAKn#go---modules> | |
uses: actions/cache@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
run: | | |
mkdir ./coverage-ci | |
go test -v -race -cover -tags=debug -coverpkg=$(cat pkgs.txt) -failfast -coverprofile=./coverage-ci/http_unit.out -covermode=atomic ./... | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/http_unit.out | |
proxy_ip_test: | |
name: Proxy IP parser middleware (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
with: | |
repository: 'roadrunner-server/proxy_ip_parser' | |
- name: Init Go modules Cache # Docs: <https://git.io/JfAKn#go---modules> | |
uses: actions/cache@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
run: | | |
mkdir ./coverage-ci | |
go test -v -race -cover -tags=debug -coverpkg=$(cat pkgs.txt) -failfast -coverprofile=./coverage-ci/proxy_ip.out -covermode=atomic ./... | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/proxy_ip.out | |
kafka_test: | |
name: Kafka plugin (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
run: | | |
docker compose -f env/docker-compose-kafka.yaml up -d | |
sleep 40 | |
mkdir ./coverage-ci | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/kafka.out -covermode=atomic ./plugins/jobs/kafka | |
docker compose -f env/docker-compose-kafka.yaml down | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/kafka.out | |
amqp_test: | |
name: RabbitMQ plugin (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
run: | | |
sudo apt update | |
sudo apt install -y libnss3-tools | |
curl -JLO "https://dl.filippo.io/mkcert/latest?for=linux/amd64" | |
chmod +x mkcert-v*-linux-amd64 | |
sudo cp mkcert-v*-linux-amd64 /usr/local/bin/mkcert | |
mkcert -install | |
mkcert localhost 127.0.0.1 ::1 | |
mkcert -client localhost 127.0.0.1 ::1 | |
cp -r localhost+2-client-key.pem localhost+2-client.pem localhost+2-key.pem localhost+2.pem test-certs/ | |
cp -r $(mkcert -CAROOT)/rootCA.pem test-certs/ | |
docker compose -f env/docker-compose-amqp.yaml up -d | |
sleep 30 | |
docker compose -f env/docker-compose-http.yaml up -d | |
sleep 30 | |
mkdir ./coverage-ci | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/amqp.out -covermode=atomic ./plugins/jobs/amqp | |
docker compose -f env/docker-compose-amqp.yaml down | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/amqp.out | |
beanstalk_test: | |
name: beanstalk plugin (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
run: | | |
docker build -t beanstalk -f env/Dockerfile-beanstalkd.yaml . | |
docker run -d -p 127.0.0.1:11300:11300 beanstalk | |
sleep 10 | |
docker compose -f env/docker-compose-http.yaml up -d | |
sleep 30 | |
mkdir ./coverage-ci | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/beanstalk.out -covermode=atomic ./plugins/jobs/beanstalk | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/beanstalk.out | |
boltdb_test: | |
name: boltdb (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
run: | | |
docker compose -f env/docker-compose-http.yaml up -d | |
sleep 30 | |
mkdir ./coverage-ci | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/boltdb.out -covermode=atomic ./plugins/jobs/boltdb | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/boltdb.out | |
durability_test_amqp: | |
name: AMQP durability test (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
run: | | |
docker-compose -f env/docker-compose.yaml up -d --remove-orphans | |
sleep 30 | |
mkdir ./coverage-ci | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/durability_amqp.out -covermode=atomic ./plugins/jobs/durability/amqp | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/durability_amqp.out | |
durability_test_beanstalk: | |
name: Beanstalk durability test (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
run: | | |
docker-compose -f env/docker-compose.yaml up -d --remove-orphans | |
sleep 30 | |
mkdir ./coverage-ci | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/durability_beanstalk.out -covermode=atomic ./plugins/jobs/durability/beanstalk | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/durability_beanstalk.out | |
durability_test_kafka: | |
name: Kafka durability test (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
run: | | |
docker-compose -f env/docker-compose.yaml up -d --remove-orphans | |
sleep 30 | |
mkdir ./coverage-ci | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/durability_kafka.out -covermode=atomic ./plugins/jobs/durability/kafka | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/durability_kafka.out | |
durability_test_nats: | |
name: NATS durability test (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
run: | | |
docker-compose -f env/docker-compose.yaml up -d --remove-orphans | |
sleep 30 | |
mkdir ./coverage-ci | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/durability_nats.out -covermode=atomic ./plugins/jobs/durability/nats | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/durability_nats.out | |
durability_test_sqs: | |
name: SQS durability test (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
env: | |
RR_TEST_ENV: ${{ secrets.RR_TEST_ENV }} | |
RR_SQS_TEST_ENDPOINT: ${{ secrets.RR_SQS_TEST_ENDPOINT }} | |
RR_SQS_TEST_REGION: ${{ secrets.RR_SQS_TEST_REGION }} | |
RR_SQS_TEST_KEY: ${{ secrets.RR_SQS_TEST_KEY }} | |
RR_SQS_TEST_SECRET: ${{ secrets.RR_SQS_TEST_SECRET }} | |
run: | | |
docker-compose -f env/docker-compose.yaml up -d --remove-orphans | |
sleep 30 | |
docker compose -f env/docker-compose-http.yaml up -d | |
sleep 30 | |
mkdir ./coverage-ci | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/durability_sqs.out -covermode=atomic ./plugins/jobs/durability/sqs | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/durability_sqs.out | |
general_test: | |
name: jobs general test (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
run: | | |
docker-compose -f env/docker-compose.yaml up -d --remove-orphans | |
sleep 30 | |
mkdir ./coverage-ci | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/general.out -covermode=atomic ./plugins/jobs/general | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/general.out | |
memory_test: | |
name: memory pluign (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
run: | | |
docker compose -f env/docker-compose-http.yaml up -d | |
sleep 30 | |
mkdir ./coverage-ci | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/memory.out -covermode=atomic ./plugins/jobs/memory | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/memory.out | |
nats_test: | |
name: nats plugin (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
run: | | |
docker-compose -f env/docker-compose-nats.yaml up -d | |
sleep 30 | |
docker compose -f env/docker-compose-http.yaml up -d | |
sleep 30 | |
mkdir ./coverage-ci | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/nats.out -covermode=atomic ./plugins/jobs/nats | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/nats.out | |
sqs_test: | |
name: sqs plugin (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
env: | |
RR_TEST_ENV: ${{ secrets.RR_TEST_ENV }} | |
RR_SQS_TEST_ENDPOINT: ${{ secrets.RR_SQS_TEST_ENDPOINT }} | |
RR_SQS_TEST_REGION: ${{ secrets.RR_SQS_TEST_REGION }} | |
RR_SQS_TEST_KEY: ${{ secrets.RR_SQS_TEST_KEY }} | |
RR_SQS_TEST_SECRET: ${{ secrets.RR_SQS_TEST_SECRET }} | |
run: | | |
docker compose -f env/docker-compose-http.yaml up -d | |
sleep 30 | |
mkdir ./coverage-ci | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/sqs.out -covermode=atomic ./plugins/jobs/sqs | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/sqs.out | |
kv_test: | |
name: kv plugin (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
run: | | |
docker-compose -f env/docker-compose-kv.yaml up -d --remove-orphans | |
sleep 15 | |
mkdir ./coverage-ci | |
go test -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/kv.out -covermode=atomic ./plugins/kv | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/kv.out | |
tcp_test: | |
name: tcp plugin (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
run: | | |
mkdir ./coverage-ci | |
go test -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/tcp.out -covermode=atomic ./plugins/tcp | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/tcp.out | |
http_test: | |
name: http plugin (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
run: | | |
docker compose -f env/docker-compose-http.yaml up -d | |
sudo apt update | |
sudo apt install -y libnss3-tools | |
curl -JLO "https://dl.filippo.io/mkcert/latest?for=linux/amd64" | |
chmod +x mkcert-v*-linux-amd64 | |
sudo cp mkcert-v*-linux-amd64 /usr/local/bin/mkcert | |
mkcert -install | |
mkcert localhost 127.0.0.1 ::1 | |
mkcert -client localhost 127.0.0.1 ::1 | |
cp -r localhost+2-client-key.pem localhost+2-client.pem localhost+2-key.pem localhost+2.pem test-certs/ | |
cp -r $(mkcert -CAROOT)/rootCA.pem test-certs/ | |
mkdir ./coverage-ci | |
sleep 10 | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/attributes.out -covermode=atomic ./plugins/http/attributes | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/handler.out -covermode=atomic ./plugins/http/handler | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/http.out -covermode=atomic ./plugins/http/http | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/otlp.out -covermode=atomic ./plugins/http/otlp | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/uploads.out -covermode=atomic ./plugins/http/uploads | |
docker compose -f env/docker-compose-http.yaml up -d | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: | | |
./coverage-ci/attributes.out | |
./coverage-ci/handler.out | |
./coverage-ci/http.out | |
./coverage-ci/otlp.out | |
./coverage-ci/uploads.out | |
grpc_test: | |
name: grpc plugin (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- 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@v3 | |
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 php_test_files && composer update --prefer-dist --no-progress --ansi && composer dump | |
- name: Init Go modules Cache # Docs: <https://git.io/JfAKn#go---modules> | |
uses: actions/cache@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Install protoc | |
uses: arduino/setup-protoc@v2 | |
with: | |
version: '23.x' | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run golang tests with coverage | |
run: | | |
sudo apt update | |
sudo apt install -y libnss3-tools | |
curl -JLO "https://dl.filippo.io/mkcert/latest?for=linux/amd64" | |
chmod +x mkcert-v*-linux-amd64 | |
sudo cp mkcert-v*-linux-amd64 /usr/local/bin/mkcert | |
mkcert -install | |
mkcert localhost 127.0.0.1 ::1 | |
mkcert -client localhost 127.0.0.1 ::1 | |
cp -r localhost+2-client-key.pem localhost+2-client.pem localhost+2-key.pem localhost+2.pem test-certs/ | |
cp -r $(mkcert -CAROOT)/rootCA.pem test-certs/ | |
mkdir ./coverage-ci | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/grpc.out -covermode=atomic ./plugins/grpc | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/grpc.out | |
grpc_test_unit: | |
name: grpc plugin unit tests (Go ${{ matrix.go }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
repository: 'roadrunner-server/grpc' | |
- name: Init Go modules Cache # Docs: <https://git.io/JfAKn#go---modules> | |
uses: actions/cache@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Install protoc | |
uses: arduino/setup-protoc@v2 | |
with: | |
version: '23.x' | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run golang tests with coverage | |
run: | | |
mkdir ./coverage-ci | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/grpc-unit.out -covermode=atomic ./... | |
cd protoc_plugins | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=../coverage-ci/grpc-unit_2.out -covermode=atomic ./... | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci | |
informer_test: | |
name: informer plugin (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
run: | | |
mkdir ./coverage-ci | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/informer.out -covermode=atomic ./plugins/informer | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/informer.out | |
server_test: | |
name: server plugin (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
run: | | |
mkdir ./coverage-ci | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/server.out -covermode=atomic ./plugins/server | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/server.out | |
status_test: | |
name: status plugin (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
env: | |
RR_TEST_ENV: ${{ secrets.RR_TEST_ENV }} | |
RR_SQS_TEST_ENDPOINT: ${{ secrets.RR_SQS_TEST_ENDPOINT }} | |
RR_SQS_TEST_REGION: ${{ secrets.RR_SQS_TEST_REGION }} | |
RR_SQS_TEST_KEY: ${{ secrets.RR_SQS_TEST_KEY }} | |
RR_SQS_TEST_SECRET: ${{ secrets.RR_SQS_TEST_SECRET }} | |
run: | | |
mkdir ./coverage-ci | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/status.out -covermode=atomic ./plugins/status | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/status.out | |
config_unit_test: | |
name: config plugin unit test (Go ${{ matrix.go }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
repository: 'roadrunner-server/config' | |
- name: Init Go modules Cache # Docs: <https://git.io/JfAKn#go---modules> | |
uses: actions/cache@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
run: | | |
mkdir ./coverage-ci | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/config_unit.out -covermode=atomic ./... | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/config_unit.out | |
config_test: | |
name: config plugin (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
run: | | |
docker-compose -f env/docker-compose-jobs.yaml up -d --remove-orphans | |
sleep 30 | |
mkdir ./coverage-ci | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/config.out -covermode=atomic ./plugins/config | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/config.out | |
gzip_test: | |
name: gzip plugin (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
env: | |
RR_TEST_ENV: ${{ secrets.RR_TEST_ENV }} | |
RR_SQS_TEST_ENDPOINT: ${{ secrets.RR_SQS_TEST_ENDPOINT }} | |
RR_SQS_TEST_REGION: ${{ secrets.RR_SQS_TEST_REGION }} | |
RR_SQS_TEST_KEY: ${{ secrets.RR_SQS_TEST_KEY }} | |
RR_SQS_TEST_SECRET: ${{ secrets.RR_SQS_TEST_SECRET }} | |
run: | | |
mkdir ./coverage-ci | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/gzip.out -covermode=atomic ./plugins/gzip | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/gzip.out | |
headers_test: | |
name: headers plugin (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
run: | | |
mkdir ./coverage-ci | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/headers.out -covermode=atomic ./plugins/headers | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/headers.out | |
logger_test: | |
name: logger plugin (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
env: | |
RR_TEST_ENV: ${{ secrets.RR_TEST_ENV }} | |
RR_SQS_TEST_ENDPOINT: ${{ secrets.RR_SQS_TEST_ENDPOINT }} | |
RR_SQS_TEST_REGION: ${{ secrets.RR_SQS_TEST_REGION }} | |
RR_SQS_TEST_KEY: ${{ secrets.RR_SQS_TEST_KEY }} | |
RR_SQS_TEST_SECRET: ${{ secrets.RR_SQS_TEST_SECRET }} | |
run: | | |
mkdir ./coverage-ci | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/logger.out -covermode=atomic ./plugins/logger | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/logger.out | |
metrics_test: | |
name: metrics plugin (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
run: | | |
mkdir ./coverage-ci | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/metrics.out -covermode=atomic ./plugins/metrics | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/metrics.out | |
resetter_test: | |
name: resetter plugin (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
run: | | |
mkdir ./coverage-ci | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/resetter.out -covermode=atomic ./plugins/resetter | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/resetter.out | |
rpc_test: | |
name: rpc plugin (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
env: | |
RR_TEST_ENV: ${{ secrets.RR_TEST_ENV }} | |
RR_SQS_TEST_ENDPOINT: ${{ secrets.RR_SQS_TEST_ENDPOINT }} | |
RR_SQS_TEST_REGION: ${{ secrets.RR_SQS_TEST_REGION }} | |
RR_SQS_TEST_KEY: ${{ secrets.RR_SQS_TEST_KEY }} | |
RR_SQS_TEST_SECRET: ${{ secrets.RR_SQS_TEST_SECRET }} | |
run: | | |
mkdir ./coverage-ci | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/rpc.out -covermode=atomic ./plugins/rpc | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/rpc.out | |
locks_test: | |
name: Lock test (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
run: | | |
mkdir ./coverage-ci | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/locks.out -covermode=atomic ./plugins/lock | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/locks.out | |
applogger_test: | |
name: applogger test (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
php: [ "8.2" ] | |
go: [ stable ] | |
os: [ "ubuntu-latest" ] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go> | |
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@v4 | |
- 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@v3 | |
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 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@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Run golang tests with coverage | |
run: | | |
mkdir ./coverage-ci | |
go test -timeout 20m -v -race -cover -tags=debug -failfast -coverpkg=$(cat pkgs.txt) -coverprofile=./coverage-ci/applogger.out -covermode=atomic ./plugins/app_logger | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: ./coverage-ci/applogger.out | |
codecov: | |
name: Upload codecov | |
runs-on: ubuntu-latest | |
needs: | |
- service_test | |
- temporal_test | |
- temporal_tls_test | |
- centrifugo_test | |
- amqp_test | |
- locks_test | |
- kafka_test | |
- grpc_test_unit | |
- beanstalk_test | |
- service_unit_test | |
- boltdb_test | |
- durability_test_amqp | |
- durability_test_beanstalk | |
- durability_test_kafka | |
- durability_test_nats | |
- durability_test_sqs | |
- general_test | |
- memory_test | |
- nats_test | |
- sqs_test | |
- kv_test | |
- tcp_test | |
- http_test | |
- grpc_test | |
- informer_test | |
- server_test | |
- status_test | |
- config_test | |
- config_unit_test | |
- gzip_test | |
- http_unit_test | |
- headers_test | |
- logger_test | |
- metrics_test | |
- resetter_test | |
- rpc_test | |
- applogger_test | |
timeout-minutes: 60 | |
steps: | |
- name: Download code coverage results | |
uses: actions/download-artifact@v3 | |
- run: | | |
cd coverage | |
echo 'mode: atomic' > summary.txt | |
tail -q -n +2 *.out >> summary.txt | |
sed -i '2,${/roadrunner/!d}' summary.txt | |
- name: upload to codecov | |
uses: codecov/codecov-action@v3 # Docs: <https://github.com/codecov/codecov-action> | |
with: | |
file: ./coverage/summary.txt | |
fail_ci_if_error: false |