Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 28 additions & 14 deletions .github/gh-config-template/gh_template.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
#@ load("@ytt:data", "data")
#@ load("ytt-helpers.star", "helpers")

name: unit-integration-tests

on:
push:
branches:
- develop
pull_request:
pull_request_target:
types:
- labeled

env:
MAPPING: |
Expand All @@ -34,13 +32,14 @@ env:

jobs:
repo-clone:
if: github.event.label.name == 'ready-to-run'
runs-on: ubuntu-latest
steps:
- name: routing-release-repo
uses: actions/checkout@v4
with:
repository: cloudfoundry/routing-release.git
ref: github-action
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
submodules: recursive
path: repo
- name: Check out wg-appruntime code
Expand All @@ -63,7 +62,10 @@ jobs:
runs-on: ubuntu-latest
needs: repo-clone
container:
image: cloudfoundry/tas-runtime-mysql-5.7
image: us-central1-docker.pkg.dev/cf-diego-pivotal/tas-runtime-dockerhub-mirror/cloudfoundry/tas-runtime-build
credentials:
username: _json_key
password: ${{ secrets.GCP_SERVICE_ACCOUNT_TAS_RUNTIME_BUILD_IMAGE_READER }}
steps:
- name: Download artifact
uses: actions/download-artifact@v4
Expand All @@ -77,15 +79,18 @@ jobs:
runs-on: ubuntu-latest
needs: repo-clone
container:
image: cloudfoundry/tas-runtime-mysql-5.7
image: us-central1-docker.pkg.dev/cf-diego-pivotal/tas-runtime-dockerhub-mirror/cloudfoundry/tas-runtime-mysql-5.7
credentials:
username: _json_key
password: ${{ secrets.GCP_SERVICE_ACCOUNT_TAS_RUNTIME_BUILD_IMAGE_READER }}
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: repo
- run: |
tar -xzvf repo-artifact.tar.gz
tar -xzvf ci-artifact.tar.gz
tar -xzvf repo-artifact.tar.gz
tar -xzvf ci-artifact.tar.gz
- name: build binaries
run: |
export DEFAULT_PARAMS="${GITHUB_WORKSPACE}/ci/routing-release/default-params/build-binaries/linux.yml"
Expand All @@ -103,7 +108,10 @@ jobs:
runs-on: ubuntu-latest
needs: repo-clone
container:
image: cloudfoundry/tas-runtime-build
image: us-central1-docker.pkg.dev/cf-diego-pivotal/tas-runtime-dockerhub-mirror/cloudfoundry/tas-runtime-build
credentials:
username: _json_key
password: ${{ secrets.GCP_SERVICE_ACCOUNT_TAS_RUNTIME_BUILD_IMAGE_READER }}
steps:
- name: Download artifact
uses: actions/download-artifact@v4
Expand All @@ -128,7 +136,10 @@ jobs:
runs-on: ubuntu-latest
needs: repo-clone
container:
image: cloudfoundry/tas-runtime-postgres
image: us-central1-docker.pkg.dev/cf-diego-pivotal/tas-runtime-dockerhub-mirror/cloudfoundry/tas-runtime-postgres
credentials:
username: _json_key
password: ${{ secrets.GCP_SERVICE_ACCOUNT_TAS_RUNTIME_BUILD_IMAGE_READER }}
steps:
- name: Download artifact
uses: actions/download-artifact@v4
Expand All @@ -153,7 +164,10 @@ jobs:
runs-on: ubuntu-latest
needs: repo-clone
container:
image: cloudfoundry/tas-runtime-mysql-8.0
image: us-central1-docker.pkg.dev/cf-diego-pivotal/tas-runtime-dockerhub-mirror/cloudfoundry/tas-runtime-mysql-8.0
credentials:
username: _json_key
password: ${{ secrets.GCP_SERVICE_ACCOUNT_TAS_RUNTIME_BUILD_IMAGE_READER }}
steps:
- name: Download artifact
uses: actions/download-artifact@v4
Expand Down
34 changes: 22 additions & 12 deletions .github/workflows/tests-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: unit-integration-tests
on:
push:
branches:
- develop
pull_request:

pull_request_target:
types:
- labeled
env:
MAPPING: |
build_nats_server=src/code.cloudfoundry.org/vendor/github.com/nats-io/nats-server/v2
Expand All @@ -29,13 +27,14 @@ env:
FUNCTIONS: ci/routing-release/helpers/configure-binaries.bash
jobs:
repo-clone:
if: github.event.label.name == 'ready-to-run'
runs-on: ubuntu-latest
steps:
- name: routing-release-repo
uses: actions/checkout@v4
with:
repository: cloudfoundry/routing-release.git
ref: develop
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
submodules: recursive
path: repo
- name: Check out wg-appruntime code
Expand Down Expand Up @@ -67,7 +66,9 @@ jobs:
uses: actions/download-artifact@v4
with:
name: repo
- run: "tar -xzvf repo-artifact.tar.gz\ntar -xzvf ci-artifact.tar.gz\n"
- run: |
tar -xzvf repo-artifact.tar.gz
tar -xzvf ci-artifact.tar.gz
- name: template-tests
run: |
"${GITHUB_WORKSPACE}"/ci/shared/tasks/run-tests-templates/task.bash
Expand All @@ -84,7 +85,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: repo
- run: "tar -xzvf repo-artifact.tar.gz\ntar -xzvf ci-artifact.tar.gz\n"
- run: "tar -xzvf repo-artifact.tar.gz\ntar -xzvf ci-artifact.tar.gz \n"
- name: build binaries
run: |
export DEFAULT_PARAMS="${GITHUB_WORKSPACE}/ci/routing-release/default-params/build-binaries/linux.yml"
Expand All @@ -94,18 +95,21 @@ jobs:
DIR: src/code.cloudfoundry.org/gorouter
DB: mysql
run: |
"${GITHUB_WORKSPACE}"/ci/routing-release/helpers/configure-binaries.bash
"${GITHUB_WORKSPACE}"/ci/shared/tasks/run-bin-test/task.bash --keep-going --trace -r --fail-on-pending --randomize-all --nodes=7 --race --timeout 30m --flake-attempts 2
- name: cf-tcp-router-mysql
env:
DIR: src/code.cloudfoundry.org/cf-tcp-router
DB: mysql
run: |
"${GITHUB_WORKSPACE}"/ci/routing-release/helpers/configure-binaries.bash
"${GITHUB_WORKSPACE}"/ci/shared/tasks/run-bin-test/task.bash --keep-going --trace -r --fail-on-pending --randomize-all --nodes=7 --race --timeout 30m --flake-attempts 2
- name: routing-api-mysql
env:
DIR: src/code.cloudfoundry.org/routing-api
DB: mysql
run: |
"${GITHUB_WORKSPACE}"/ci/routing-release/helpers/configure-binaries.bash
"${GITHUB_WORKSPACE}"/ci/shared/tasks/run-bin-test/task.bash --keep-going --trace -r --fail-on-pending --randomize-all --nodes=7 --race --timeout 30m --flake-attempts 2
test-repos-withoutdb:
runs-on: ubuntu-latest
Expand All @@ -120,7 +124,9 @@ jobs:
uses: actions/download-artifact@v4
with:
name: repo
- run: "tar -xzvf repo-artifact.tar.gz\ntar -xzvf ci-artifact.tar.gz\n"
- run: |
tar -xzvf repo-artifact.tar.gz
tar -xzvf ci-artifact.tar.gz
- name: build binaries
run: |
export DEFAULT_PARAMS="${GITHUB_WORKSPACE}/ci/routing-release/default-params/build-binaries/linux.yml"
Expand Down Expand Up @@ -156,7 +162,9 @@ jobs:
uses: actions/download-artifact@v4
with:
name: repo
- run: "tar -xzvf repo-artifact.tar.gz\ntar -xzvf ci-artifact.tar.gz\n"
- run: |
tar -xzvf repo-artifact.tar.gz
tar -xzvf ci-artifact.tar.gz
- name: build binaries
run: |
export DEFAULT_PARAMS="${GITHUB_WORKSPACE}/ci/routing-release/default-params/build-binaries/linux.yml"
Expand Down Expand Up @@ -192,7 +200,9 @@ jobs:
uses: actions/download-artifact@v4
with:
name: repo
- run: "tar -xzvf repo-artifact.tar.gz\ntar -xzvf ci-artifact.tar.gz\n"
- run: |
tar -xzvf repo-artifact.tar.gz
tar -xzvf ci-artifact.tar.gz
- name: build binaries
run: |
export DEFAULT_PARAMS="${GITHUB_WORKSPACE}/ci/routing-release/default-params/build-binaries/linux.yml"
Expand Down